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

config.c: fix a compiler warning #159

Merged
merged 1 commit into from
Apr 10, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,15 +568,15 @@ 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;
}

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;
Expand Down