From: Thomas Roessler Date: Thu, 5 Oct 2000 19:12:28 +0000 (+0000) Subject: Catch some possible NULL pointer deferences. From X-Git-Tag: mutt-1-3-10-rel~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe7d2cb2e0f9817ce1b03a6f860b48cbc967aa43;p=mutt Catch some possible NULL pointer deferences. From chris+usenet@chiappa.net (Chris Chiappa), posted to comp.mail.mutt. --- diff --git a/query.c b/query.c index db8ce0fe..cb0f734e 100644 --- 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)