]> granicus.if.org Git - neomutt/commitdiff
use NUL rather than zero
authorRichard Russon <rich@flatcap.org>
Sun, 17 Feb 2019 16:17:52 +0000 (16:17 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 19 Feb 2019 00:48:01 +0000 (00:48 +0000)
enter.c

diff --git a/enter.c b/enter.c
index 764884855e582b684829a05cd6fcb5478eff1e13..eec7e954debfd560a33373233c8094ac1c682572 100644 (file)
--- a/enter.c
+++ b/enter.c
@@ -523,7 +523,7 @@ int mutt_enter_string_full(char *buf, size_t buflen, int col, int flags, bool mu
             {
               mutt_select_file(buf, buflen,
                                (flags & MUTT_EFILE) ? MUTT_SEL_FOLDER : 0, NULL, NULL);
-              if (*buf)
+              if (buf[0] != '\0')
                 replace_part(state, i, buf);
               rc = 1;
               goto bye;
@@ -637,7 +637,7 @@ int mutt_enter_string_full(char *buf, size_t buflen, int col, int flags, bool mu
                                ((flags & MUTT_EFILE) ? MUTT_SEL_FOLDER : 0) |
                                    (multiple ? MUTT_SEL_MULTI : 0),
                                files, numfiles);
-              if (*buf)
+              if (buf[0] != '\0')
               {
                 mutt_pretty_mailbox(buf, buflen);
                 if (!pass)