From 314fb1444967b7071ac048350fe5d87f11fdc265 Mon Sep 17 00:00:00 2001 From: "timurrrr@chromium.org" Date: Tue, 14 Sep 2010 12:25:42 +0000 Subject: Fix a stupid bug in GetRunningOnValgrind, this is a copy of TSan r2453 change TEST=RunningOnValgrind() should be fixed on Windows TBR=glider Review URL: http://codereview.chromium.org/3437001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59359 0039d316-1c4b-4281-b951-d872f2087c98 --- base/third_party/dynamic_annotations/dynamic_annotations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1