Convince Coverity that s = format (0, ...) is OK
[vpp.git] / src / vppinfra / format.c
index 886f03d..072ff3b 100644 (file)
@@ -422,6 +422,10 @@ format (u8 * s, const char *fmt, ...)
   va_start (va, fmt);
   s = va_format (s, fmt, &va);
   va_end (va);
+#ifdef __COVERITY__
+  if (s == 0)
+    return (u8 *) "liar liar pants on fire s can't be zero!";
+#endif
   return s;
 }