From 2d09d2292de86d97771c390338e410c7e70e85b0 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 c7faa1e6625d45..d654498aab423f 100644 --- a/config.c +++ b/config.c @@ -568,7 +568,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; @@ -576,7 +576,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;