summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/third_party/dynamic_annotations/dynamic_annotations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/third_party/dynamic_annotations/dynamic_annotations.c b/base/third_party/dynamic_annotations/dynamic_annotations.c
index 5cfadb9..4bfc33b 100644
--- a/base/third_party/dynamic_annotations/dynamic_annotations.c
+++ b/base/third_party/dynamic_annotations/dynamic_annotations.c
@@ -141,7 +141,7 @@ static int GetRunningOnValgrind(void) {
/* value will remain "1" if res == 0 or res >= sizeof(value). The latter
* can happen only if the given value is long, in this case it can't be "0".
*/
- if (res > 0 && !strcmp(value, "0"))
+ if (res > 0 && strcmp(value, "0") != 0)
return 1;
#endif
return 0;