projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Timestamping callback interface in folly::AsyncSocket
[folly.git]
/
folly
/
FormatArg.h
diff --git
a/folly/FormatArg.h
b/folly/FormatArg.h
index 5257285c00a23332cdeb5f00f1281a3c2bf96fed..48311e3d4e7cd18a77aeacb553dd0d4c98fc7ee9 100644
(file)
--- a/
folly/FormatArg.h
+++ b/
folly/FormatArg.h
@@
-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)));
}