tweaks: remove a fragment of dead code
At that point, ptr will necessarily point at EOL -- *ptr == '\0'.master
parent
3981217e5a
commit
a99158c7c0
|
@ -200,11 +200,8 @@ char *parse_argument(char *ptr)
|
||||||
} while (*ptr != '\0');
|
} while (*ptr != '\0');
|
||||||
|
|
||||||
if (last_quote == NULL) {
|
if (last_quote == NULL) {
|
||||||
if (*ptr == '\0')
|
|
||||||
ptr = NULL;
|
|
||||||
else
|
|
||||||
*ptr++ = '\0';
|
|
||||||
rcfile_error(N_("Argument '%s' has an unterminated \""), ptr_save);
|
rcfile_error(N_("Argument '%s' has an unterminated \""), ptr_save);
|
||||||
|
ptr = NULL;
|
||||||
} else {
|
} else {
|
||||||
*last_quote = '\0';
|
*last_quote = '\0';
|
||||||
ptr = last_quote + 1;
|
ptr = last_quote + 1;
|
||||||
|
|
Loading…
Reference in New Issue