Compiler quietening
[exim.git] / src / src / malware.c
index 141c6ea16c20e92f4f6722b83c01dc73a3c72768..96af1e8c6a49edb1a76bbfa327ed984ef8600cc6 100644 (file)
@@ -886,7 +886,7 @@ if (!malware_ok)
              string_sprintf("unable to read result (%s)", strerror(errno)),
              sock);
 
-         for (p[bread] = '\0'; q = Ustrchr(p, '\n'); p = q+1)
+         for (p[bread] = '\0'; (q = Ustrchr(p, '\n')); p = q+1)
            {
            *q = '\0';
 
@@ -1880,6 +1880,9 @@ if (!malware_ok)
 
              /* here for any unexpected response from the scanner */
              goto endloop;
+
+           case AVA_DONE:      log_write(0, LOG_PANIC, "%s:%d:%s: should not happen",
+                           __FILE__, __LINE__, __FUNCTION__);
            }
          }
        }