From 6fe331a28031c6ae587f28df36c29ea793a4b704 Mon Sep 17 00:00:00 2001 From: Stepan Kasal Date: Thu, 10 Apr 2014 16:37:15 +0200 Subject: [PATCH] config.c: fix a compiler warning --- config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index 314d8ee740..0b7e4f87df 100644 --- a/config.c +++ b/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 ret; + int ret = 0; if (!git_parse_int(value, &ret)) die_bad_number(name, value); 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 ret; + int64_t ret = 0; if (!git_parse_int64(value, &ret)) die_bad_number(name, value); return ret; -- 2.11.4.GIT