Commit d85098ab authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: reshuffle a couple of lines, to make a bit more sense

No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
...@@ -848,17 +848,17 @@ void pick_up_name(const char *kind, char *ptr, char **storage) ...@@ -848,17 +848,17 @@ void pick_up_name(const char *kind, char *ptr, char **storage)
/* If the argument starts with a quote, find the terminating quote. */ /* If the argument starts with a quote, find the terminating quote. */
if (*ptr == '"') { if (*ptr == '"') {
char *look = ++ptr; char *look = ptr + strlen(ptr);
look += strlen(ptr);
while (*look != '"') { while (*look != '"') {
if (--look < ptr) { if (--look == ptr) {
rcfile_error(N_("Argument of '%s' lacks closing \""), kind); rcfile_error(N_("Argument of '%s' lacks closing \""), kind);
return; return;
} }
} }
*look = '\0'; *look = '\0';
ptr++;
} }
*storage = mallocstrcpy(*storage, ptr); *storage = mallocstrcpy(*storage, ptr);
......
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