From: Stepan Kasal <kasal@ucw.cz>
To: git@vger.kernel.org
Subject: [PATCH] config.c: fix a compiler warning
Date: Wed, 16 Apr 2014 16:13:53 +0200 [thread overview]
Message-ID: <20140416141353.GA9676@camelia.ucw.cz> (raw)
Date: Thu, 10 Apr 2014 16:37:15 +0200
This change fixes a gcc warning when building msysGit.
---
config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config.c b/config.c
index 314d8ee..0b7e4f8 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;
--
1.9.2.msysgit.0.154.g978f18d
next reply other threads:[~2014-04-16 14:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 14:13 Stepan Kasal [this message]
2014-04-16 15:29 ` [PATCH] config.c: fix a compiler warning Jeff King
2014-04-16 16:38 ` Torsten Bögershausen
2014-04-16 16:51 ` [PATCH] config.c: mark die_bad_number as NORETURN Jeff King
2014-04-16 17:21 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140416141353.GA9676@camelia.ucw.cz \
--to=kasal@ucw.cz \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).