Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
13faa77c
Commit
13faa77c
authored
Sep 13, 2012
by
Michael Schubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -Wuninitialized warning
parent
21d847d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/blob.c
+1
-1
src/odb.c
+1
-1
No files found.
src/blob.c
View file @
13faa77c
...
...
@@ -68,7 +68,7 @@ static int write_file_stream(
int
fd
,
error
;
char
buffer
[
4096
];
git_odb_stream
*
stream
=
NULL
;
ssize_t
read_len
,
written
=
0
;
ssize_t
read_len
=
-
1
,
written
=
0
;
if
((
error
=
git_odb_open_wstream
(
&
stream
,
odb
,
(
size_t
)
file_size
,
GIT_OBJ_BLOB
))
<
0
)
...
...
src/odb.c
View file @
13faa77c
...
...
@@ -115,7 +115,7 @@ int git_odb__hashfd(git_oid *out, git_file fd, size_t size, git_otype type)
int
hdr_len
;
char
hdr
[
64
],
buffer
[
2048
];
git_hash_ctx
*
ctx
;
ssize_t
read_len
;
ssize_t
read_len
=
-
1
;
hdr_len
=
format_object_header
(
hdr
,
sizeof
(
hdr
),
size
,
type
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment