Coverity: CID 400010: Improper use of negative value
[sxemacs] / src / ui / minibuf.c
index 28c7d1c..3627e6c 100644 (file)
@@ -680,7 +680,7 @@ echo_area_append(struct frame *f, const Bufbyte * nonreloc, Lisp_Object reloc,
        fixup_internal_substring(nonreloc, reloc, offset, &length);
 
        /* also check it here, in case the string was really blank. */
-       if (length == 0)
+       if (length <= 0)
                return;
 
        if (!NILP(Ffboundp(Qappend_message))) {