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
183aa4f8
Commit
183aa4f8
authored
Apr 30, 2014
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for NULL before passing it to vsnprintf
parent
6b05240c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/config.c
+2
-2
src/remote.c
+1
-1
No files found.
src/config.c
View file @
183aa4f8
...
...
@@ -1144,7 +1144,7 @@ int git_config_parse_int64(int64_t *out, const char *value)
}
fail_parse:
giterr_set
(
GITERR_CONFIG
,
"Failed to parse '%s' as an integer"
,
value
);
giterr_set
(
GITERR_CONFIG
,
"Failed to parse '%s' as an integer"
,
value
?
value
:
"(null)"
);
return
-
1
;
}
...
...
@@ -1164,7 +1164,7 @@ int git_config_parse_int32(int32_t *out, const char *value)
return
0
;
fail_parse:
giterr_set
(
GITERR_CONFIG
,
"Failed to parse '%s' as a 32-bit integer"
,
value
);
giterr_set
(
GITERR_CONFIG
,
"Failed to parse '%s' as a 32-bit integer"
,
value
?
value
:
"(null)"
);
return
-
1
;
}
...
...
src/remote.c
View file @
183aa4f8
...
...
@@ -73,7 +73,7 @@ static int ensure_remote_name_is_valid(const char *name)
if
(
!
git_remote_is_valid_name
(
name
))
{
giterr_set
(
GITERR_CONFIG
,
"'%s' is not a valid remote name."
,
name
);
"'%s' is not a valid remote name."
,
name
?
name
:
"(null)"
);
error
=
GIT_EINVALIDSPEC
;
}
...
...
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