From a99158c7c01861c79d72ab553da528c8b74d41b3 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 19 Jan 2018 17:56:17 +0100
Subject: [PATCH] tweaks: remove a fragment of dead code

At that point, ptr will necessarily point at EOL -- *ptr == '\0'.
---
 src/rcfile.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/rcfile.c b/src/rcfile.c
index eece5a8e..e7490a41 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -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;
-- 
GitLab