Commit 616c1433 by Russell Belfer

Clean up code

Okay, this is probably cleaner and it is also less net change
from the original version
parent a1ecddf0
...@@ -1343,9 +1343,8 @@ static int parse_variable(diskfile_backend *cfg, char **var_name, char **var_val ...@@ -1343,9 +1343,8 @@ static int parse_variable(diskfile_backend *cfg, char **var_name, char **var_val
else else
value_start = var_end + 1; value_start = var_end + 1;
var_end--; do var_end--;
while (git__isspace(*var_end)) while (git__isspace(*var_end));
var_end--;
*var_name = git__strndup(line, var_end - line + 1); *var_name = git__strndup(line, var_end - line + 1);
GITERR_CHECK_ALLOC(*var_name); GITERR_CHECK_ALLOC(*var_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment