nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a99158c7c01861c79d72ab553da528c8b74d41b3
parent 3981217e5a19eaad6544eaaebd151b5f22a76edc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 19 Jan 2018 17:56:17 +0100

tweaks: remove a fragment of dead code

At that point, ptr will necessarily point at EOL -- *ptr == '\0'.

Diffstat:
Msrc/rcfile.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 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;