Tidying: coverity issues
[exim.git] / src / src / lookups / lf_quote.c
index 86cdeef2857564e73db76a1bd92deea24c0e9212..2a76756e9cf417c2febeec6456424ae2fc12488a 100644 (file)
@@ -37,7 +37,11 @@ result = string_append(result, asize, aoffset, 2, name, US"=");
 
 /* NULL is handled as an empty string */
 
-if (value == NULL) value = US"";
+if (!value)
+  {
+  value = US"";
+  vlength = 0;
+  }
 
 /* Quote the value if it is empty, contains white space, or starts with a quote
 character. */