VPP-1576: fix a class of spurious warnings
[vpp.git] / src / vppinfra / format.c
index 072ff3b..cb6cb45 100644 (file)
@@ -412,6 +412,11 @@ va_format (u8 * s, const char *fmt, va_list * va)
   if (f > g)
     vec_add (s, g, f - g);
 
+#ifdef __COVERITY__
+  if (s == 0)
+    return (u8 *) "liar liar pants on fire s can't be zero!";
+#endif
+
   return s;
 }