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

Commit 2d09d22

Browse files
committed
config.c: fix a compiler warning
1 parent 5120b9a commit 2d09d22

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
@@ -568,15 +568,15 @@ static void die_bad_number(const char *name, const char *value)
568568

569569
int git_config_int(const char *name, const char *value)
570570
{
571-
int ret;
571+
int ret = 0;
572572
if (!git_parse_int(value, &ret))
573573
die_bad_number(name, value);
574574
return ret;
575575
}
576576

577577
int64_t git_config_int64(const char *name, const char *value)
578578
{
579-
int64_t ret;
579+
int64_t ret = 0;
580580
if (!git_parse_int64(value, &ret))
581581
die_bad_number(name, value);
582582
return ret;

0 commit comments

Comments
 (0)