projects
/
mutt
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a7cd1
)
Ignore NULL/empty lines in rc parser, fixes mutt -e '' crashing
author
Rocco Rutte
<pdmef@gmx.net>
Fri, 26 Dec 2008 13:36:50 +0000
(14:36 +0100)
committer
Rocco Rutte
<pdmef@gmx.net>
Fri, 26 Dec 2008 13:36:50 +0000
(14:36 +0100)
init.c
patch
|
blob
|
history
diff --git
a/init.c
b/init.c
index 09b8db267325b45db6513e2341702cd2aa423c65..1976358f6dcdca9511814dba62a96dc3baa63507 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-2348,6
+2348,9
@@
int mutt_parse_rc_line (/* const */ char *line, BUFFER *token, BUFFER *err)
int i, r = -1;
BUFFER expn;
+ if (!line || !*line)
+ return 0;
+
memset (&expn, 0, sizeof (expn));
expn.data = expn.dptr = line;
expn.dsize = mutt_strlen (line);