From: Art Cancro Date: Mon, 16 Jan 2012 20:49:36 +0000 (-0500) Subject: The indexer now prints the 'zero length message' warning only if the message is ACTUA... X-Git-Tag: v8.11~259 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=67389143a05505c730bdc5fed522274738fe4b42 The indexer now prints the 'zero length message' warning only if the message is ACTUALLY zero length. wtf? --- diff --git a/citadel/modules/fulltext/serv_fulltext.c b/citadel/modules/fulltext/serv_fulltext.c index efd808ab4..681262b4e 100644 --- a/citadel/modules/fulltext/serv_fulltext.c +++ b/citadel/modules/fulltext/serv_fulltext.c @@ -143,7 +143,7 @@ void ft_index_message(long msgnum, int op) { msgtext = CC->redirect_buffer; CC->redirect_buffer = NULL; syslog(LOG_DEBUG, "Wordbreaking message %ld...", msgnum); - if (StrLength(CC->redirect_buffer) == 0) { + if ((msgtext == NULL) || (StrLength(msgtext) == 0)) { syslog(LOG_ALERT, "This message has a zero length. Probable data corruption."); } txt = SmashStrBuf(&msgtext);