From 631752aaf61f207143dc2058782b0a97effee6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Mon, 11 Apr 2011 17:49:47 +0200 Subject: [PATCH] Fix number suffix detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow a number not to have a suffix. This broke when adding the suffixes. Signed-off-by: Carlos Martín Nieto --- src/config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config.c b/src/config.c index 78a31aee7..6b4007d62 100644 --- a/src/config.c +++ b/src/config.c @@ -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;