The indexer now prints the 'zero length message' warning only if the message is ACTUA...
authorArt Cancro <ajc@uncensored.citadel.org>
Mon, 16 Jan 2012 20:49:36 +0000 (15:49 -0500)
committerArt Cancro <ajc@uncensored.citadel.org>
Mon, 16 Jan 2012 20:49:36 +0000 (15:49 -0500)
citadel/modules/fulltext/serv_fulltext.c

index efd808ab455bb2ff29415d0d5575362f2cd7a596..681262b4e67aa4aca5c99667d61f94bbed35eb29 100644 (file)
@@ -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);