Tidying: coverity issues
[exim.git] / src / src / exim.c
index 46e856b7acceb181ab6f645688f20c67a04e78dc..490248917775b35e2272a67180409b1aacc2ddf3 100644 (file)
@@ -1272,9 +1272,10 @@ for (i = 0;; i++)
   if (fn_readline != NULL) free(readline_line);
   #endif
 
+  /* yield can only be NULL if ss==p */
   if (ss == p || yield[ptr-1] != '\\')
     {
-    yield[ptr] = 0;
+    if (yield) yield[ptr] = 0;
     break;
     }
   yield[--ptr] = 0;