diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-24 14:12:50 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-24 14:12:50 +0000 |
commit | 38a9f98fcb4765642a0103aca6004ce2d63b8236 (patch) | |
tree | 33b96f8a737366d48e177eaaca4b9c0627a5d454 /init.c | |
parent | b91528213832e6344edc21370e50c8e621ec0d62 (diff) |
Fix a segmentation fault with mismatched backticks.
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |