From 67389143a05505c730bdc5fed522274738fe4b42 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 16 Jan 2012 15:49:36 -0500 Subject: [PATCH] The indexer now prints the 'zero length message' warning only if the message is ACTUALLY zero length. wtf? --- citadel/modules/fulltext/serv_fulltext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2