diff options
| author | Russell Belfer <rb@github.com> | 2012-08-12 11:53:58 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-08-12 11:53:58 -0700 |
| commit | 616c1433b89d143a41035495a0a8504a19a72532 (patch) | |
| tree | 8db5285f8054fcd616c6434147c8e4afc9fd9eef /src | |
| parent | a1ecddf01c5546b3f29cd546f4a469263cc6785e (diff) | |
| download | libgit2-616c1433b89d143a41035495a0a8504a19a72532.tar.gz | |
Clean up code
Okay, this is probably cleaner and it is also less net change
from the original version
Diffstat (limited to 'src')
| -rw-r--r-- | src/config_file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config_file.c b/src/config_file.c index 433423582..547509b9f 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -1343,9 +1343,8 @@ static int parse_variable(diskfile_backend *cfg, char **var_name, char **var_val else value_start = var_end + 1; - var_end--; - while (git__isspace(*var_end)) - var_end--; + do var_end--; + while (git__isspace(*var_end)); *var_name = git__strndup(line, var_end - line + 1); GITERR_CHECK_ALLOC(*var_name); |
