mirror of
https://github.com/git/git.git
synced 2026-02-07 08:15:23 +00:00
Merge pull request #159 from kasal/config-c-warning
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
4
config.c
4
config.c
@@ -572,7 +572,7 @@ static void die_bad_number(const char *name, const char *value)
|
|||||||
|
|
||||||
int git_config_int(const char *name, const char *value)
|
int git_config_int(const char *name, const char *value)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = 0;
|
||||||
if (!git_parse_int(value, &ret))
|
if (!git_parse_int(value, &ret))
|
||||||
die_bad_number(name, value);
|
die_bad_number(name, value);
|
||||||
return ret;
|
return ret;
|
||||||
@@ -580,7 +580,7 @@ int git_config_int(const char *name, const char *value)
|
|||||||
|
|
||||||
int64_t git_config_int64(const char *name, const char *value)
|
int64_t git_config_int64(const char *name, const char *value)
|
||||||
{
|
{
|
||||||
int64_t ret;
|
int64_t ret = 0;
|
||||||
if (!git_parse_int64(value, &ret))
|
if (!git_parse_int64(value, &ret))
|
||||||
die_bad_number(name, value);
|
die_bad_number(name, value);
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user