]> granicus.if.org Git - neomutt/commitdiff
Fix a segmentation fault with mismatched backticks.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 24 Sep 1998 14:12:50 +0000 (14:12 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 24 Sep 1998 14:12:50 +0000 (14:12 +0000)
init.c

diff --git a/init.c b/init.c
index 5b8177c0fd5a170dcf5cafbd46ef0b725ebeff8d..b18f2fc4726d106907db61a02ab64118027b6571 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1132,7 +1132,7 @@ int mutt_parse_rc_line (/* const */ char *line, BUFFER *token, BUFFER *err)
     mutt_extract_token (token, &expn, 0);
     for (i = 0; Commands[i].name; i++)
     {
-      if (!strcmp (token->data, Commands[i].name))
+      if (!strcmp (NONULL (token->data), Commands[i].name))
       {
        if (Commands[i].func (token, &expn, Commands[i].data, err) != 0)
          goto finish;
@@ -1141,7 +1141,7 @@ int mutt_parse_rc_line (/* const */ char *line, BUFFER *token, BUFFER *err)
     }
     if (!Commands[i].name)
     {
-      snprintf (err->data, err->dsize, "%s: unknown command", token->data);
+      snprintf (err->data, err->dsize, "%s: unknown command", NONULL (token->data));
       goto finish;
     }
   }