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
cfba1377
Commit
cfba1377
authored
May 06, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #175 from carlosmn/analyzer
Fix two warnings from Clang. Fixes issue #173
parents
cc3b82e3
d8e1d038
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/commit.c
+1
-1
src/odb_loose.c
+1
-2
No files found.
src/commit.c
View file @
cfba1377
...
@@ -286,7 +286,7 @@ int commit_parse_buffer(git_commit *commit, const void *data, size_t len)
...
@@ -286,7 +286,7 @@ int commit_parse_buffer(git_commit *commit, const void *data, size_t len)
if
(
buffer
<
buffer_end
)
{
if
(
buffer
<
buffer_end
)
{
const
char
*
line_end
;
const
char
*
line_end
;
size_t
message_len
=
buffer_end
-
buffer
;
size_t
message_len
;
/* Long message */
/* Long message */
message_len
=
buffer_end
-
buffer
;
message_len
=
buffer_end
-
buffer
;
...
...
src/odb_loose.c
View file @
cfba1377
...
@@ -336,7 +336,6 @@ static int inflate_disk_obj(git_rawobj *out, gitfo_buf *obj)
...
@@ -336,7 +336,6 @@ static int inflate_disk_obj(git_rawobj *out, gitfo_buf *obj)
{
{
unsigned
char
head
[
64
],
*
buf
;
unsigned
char
head
[
64
],
*
buf
;
z_stream
zs
;
z_stream
zs
;
int
z_status
;
obj_hdr
hdr
;
obj_hdr
hdr
;
size_t
used
;
size_t
used
;
...
@@ -350,7 +349,7 @@ static int inflate_disk_obj(git_rawobj *out, gitfo_buf *obj)
...
@@ -350,7 +349,7 @@ static int inflate_disk_obj(git_rawobj *out, gitfo_buf *obj)
* inflate the initial part of the io buffer in order
* inflate the initial part of the io buffer in order
* to parse the object header (type and size).
* to parse the object header (type and size).
*/
*/
if
(
(
z_status
=
start_inflate
(
&
zs
,
obj
,
head
,
sizeof
(
head
)
))
<
Z_OK
)
if
(
start_inflate
(
&
zs
,
obj
,
head
,
sizeof
(
head
))
<
Z_OK
)
return
GIT_ERROR
;
return
GIT_ERROR
;
if
((
used
=
get_object_header
(
&
hdr
,
head
))
==
0
)
if
((
used
=
get_object_header
(
&
hdr
,
head
))
==
0
)
...
...
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