]> granicus.if.org Git - mutt/commitdiff
Catch some possible NULL pointer deferences. From
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 5 Oct 2000 19:12:28 +0000 (19:12 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 5 Oct 2000 19:12:28 +0000 (19:12 +0000)
chris+usenet@chiappa.net (Chris Chiappa), posted to comp.mail.mutt.

query.c

diff --git a/query.c b/query.c
index db8ce0fef6d0a4113c762c6dfa50d01830b2fed7..cb0f734e27c692e7ee77f69e42e37060e7d38936 100644 (file)
--- a/query.c
+++ b/query.c
@@ -170,11 +170,11 @@ static void query_entry (char *s, size_t slen, MUTTMENU *m, int num)
            num+1,
            FirstColumn+2,
            FirstColumn+2,
-           table[num].data->name,
+           NONULL (table[num].data->name),
            SecondColumn+2,
            SecondColumn+2,
            buf,
-           table[num].data->other);
+           NONULL (table[num].data->other));
 }
 
 static int query_tag (MUTTMENU *menu, int n)