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
8aab36a3
Commit
8aab36a3
authored
Feb 12, 2015
by
Edward Thomson
Committed by
Edward Thomson
Feb 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filebuf: use an int for return check
parent
f1453c59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/filebuf.c
+2
-2
No files found.
src/filebuf.c
View file @
8aab36a3
...
...
@@ -446,10 +446,10 @@ int git_filebuf_printf(git_filebuf *file, const char *format, ...)
}
va_start
(
arglist
,
format
);
l
en
=
p_vsnprintf
(
tmp_buffer
,
len
+
1
,
format
,
arglist
);
writt
en
=
p_vsnprintf
(
tmp_buffer
,
len
+
1
,
format
,
arglist
);
va_end
(
arglist
);
if
(
l
en
<
0
)
{
if
(
writt
en
<
0
)
{
git__free
(
tmp_buffer
);
file
->
last_error
=
BUFERR_MEM
;
return
-
1
;
...
...
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