From 5ee5729f3f8b43742d832cd7b4cbdd87b9a3d008 Mon Sep 17 00:00:00 2001 From: Michael Hampton Date: Mon, 10 May 2004 01:47:11 +0000 Subject: [PATCH] * messages.c: Fix crash when trying to use m next --- citadel/ChangeLog | 4 +++- citadel/messages.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index a19ed1b10..f60055a3f 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,7 @@ $Log$ + Revision 620.31 2004/05/10 01:47:11 error + * messages.c: Fix crash when trying to use m next + Revision 620.30 2004/05/07 20:27:46 ajc # citadel-openldap.schema: updated to include RFC2739 objects & attributes @@ -5752,4 +5755,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/messages.c b/citadel/messages.c index 108638879..af01c502e 100644 --- a/citadel/messages.c +++ b/citadel/messages.c @@ -1817,7 +1817,7 @@ RMSGREAD: scr_flush(); We have to load up messages until we find one by us */ char buf[SIZ]; int founda = 0; - struct ctdlipcmessage *msg; + struct ctdlipcmessage *msg = NULL; /* read the header so we can get 'from=' */ r = CtdlIPCGetSingleMessage(ipc, msg_arr[finda], 1, 0, &msg, buf); -- 2.39.2