mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-10 21:45:40 +00:00
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:
parent
55c197cdd3
commit
631752aaf6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user