Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 3c87ce5

Browse files
committed
Merge pull request #159 from kasal/config-c-warning
Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 7217f8a + 6fe331a commit 3c87ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,15 +572,15 @@ static void die_bad_number(const char *name, const char *value)
572572

573573
int git_config_int(const char *name, const char *value)
574574
{
575-
int ret;
575+
int ret = 0;
576576
if (!git_parse_int(value, &ret))
577577
die_bad_number(name, value);
578578
return ret;
579579
}
580580

581581
int64_t git_config_int64(const char *name, const char *value)
582582
{
583-
int64_t ret;
583+
int64_t ret = 0;
584584
if (!git_parse_int64(value, &ret))
585585
die_bad_number(name, value);
586586
return ret;

0 commit comments

Comments
 (0)