Timestamping callback interface in folly::AsyncSocket
[folly.git] / folly / FormatArg.h
index 5257285c00a23332cdeb5f00f1281a3c2bf96fed..48311e3d4e7cd18a77aeacb553dd0d4c98fc7ee9 100644 (file)
@@ -244,7 +244,7 @@ inline StringPiece FormatArg::doSplitKey() {
   if (e[-1] == ']') {
     --e;
     p = static_cast<const char*>(memchr(b, '[', size_t(e - b)));
-    enforce(p, "unmatched ']'");
+    enforce(p != nullptr, "unmatched ']'");
   } else {
     p = static_cast<const char*>(memchr(b, '.', size_t(e - b)));
   }