Fix number suffix detection

Allow a number not to have a suffix. This broke when adding the
suffixes.

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
Carlos Martín Nieto 2011-04-11 17:49:47 +02:00
parent 55c197cdd3
commit 631752aaf6

View File

@ -394,6 +394,8 @@ int git_config_get_long(git_config *cfg, const char *name, long int *out)
return GIT_EINVALIDTYPE;
switch (*num_end) {
case '\0':
break;
case 'k':
num *= 1024;
break;