summaryrefslogtreecommitdiffstats
path: root/base/third_party/dynamic_annotations
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 12:25:42 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 12:25:42 +0000
commit314fb1444967b7071ac048350fe5d87f11fdc265 (patch)
treeb28c1a9f8042f093ee7f2c281cd16d4f1b099721 /base/third_party/dynamic_annotations
parent19f9b4f631ea7baf2d8fc8250ece049605360ae7 (diff)
downloadchromium_src-314fb1444967b7071ac048350fe5d87f11fdc265.zip
chromium_src-314fb1444967b7071ac048350fe5d87f11fdc265.tar.gz
chromium_src-314fb1444967b7071ac048350fe5d87f11fdc265.tar.bz2
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
Diffstat (limited to 'base/third_party/dynamic_annotations')
-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;