summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-24 14:12:50 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-24 14:12:50 +0000
commit38a9f98fcb4765642a0103aca6004ce2d63b8236 (patch)
tree33b96f8a737366d48e177eaaca4b9c0627a5d454 /init.c
parentb91528213832e6344edc21370e50c8e621ec0d62 (diff)
Fix a segmentation fault with mismatched backticks.
Diffstat (limited to 'init.c')
-rw-r--r--init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.c b/init.c
index 5b8177c0..b18f2fc4 100644
--- 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;
}
}