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

Commit 2ec943a

Browse files
committed
fixup! Merge pull request #159 from kasal/config-c-warning
This commit replaces the Git for Windows-only patch by the patch accepted upstream instead. It was performed by the following shell commands: git revert -n 3c87ce5^2 && git cherry-pick -n 06bdc23 && git commit -s --fixup 3c87ce5 (and amending the commit with this commit message) Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6845d53 commit 2ec943a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ int git_parse_ulong(const char *value, unsigned long *ret)
556556
return 1;
557557
}
558558

559+
NORETURN
559560
static void die_bad_number(const char *name, const char *value)
560561
{
561562
const char *reason = errno == ERANGE ?
@@ -572,15 +573,15 @@ static void die_bad_number(const char *name, const char *value)
572573

573574
int git_config_int(const char *name, const char *value)
574575
{
575-
int ret = 0;
576+
int ret;
576577
if (!git_parse_int(value, &ret))
577578
die_bad_number(name, value);
578579
return ret;
579580
}
580581

581582
int64_t git_config_int64(const char *name, const char *value)
582583
{
583-
int64_t ret = 0;
584+
int64_t ret;
584585
if (!git_parse_int64(value, &ret))
585586
die_bad_number(name, value);
586587
return ret;

0 commit comments

Comments
 (0)