tweaks: remove a fragment of dead code

At that point, ptr will necessarily point at EOL -- *ptr == '\0'.
master
Benno Schulenberg 2018-01-19 17:56:17 +01:00
parent 3981217e5a
commit a99158c7c0
1 changed files with 1 additions and 4 deletions

View File

@ -200,11 +200,8 @@ char *parse_argument(char *ptr)
} while (*ptr != '\0');
if (last_quote == NULL) {
if (*ptr == '\0')
ptr = NULL;
else
*ptr++ = '\0';
rcfile_error(N_("Argument '%s' has an unterminated \""), ptr_save);
ptr = NULL;
} else {
*last_quote = '\0';
ptr = last_quote + 1;