From: Julian Seward Date: Wed, 19 Aug 2009 10:32:49 +0000 (+0000) Subject: Fix whitespace-skipping loop. (Konstantin Serebryany) (see #204377) X-Git-Tag: svn/VALGRIND_3_5_0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56322454327dcbbbabb0b205898da61ed7fb5d0b;p=thirdparty%2Fvalgrind.git Fix whitespace-skipping loop. (Konstantin Serebryany) (see #204377) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10845 --- diff --git a/coregrind/launcher-linux.c b/coregrind/launcher-linux.c index 4653a5ae4d..65921fb362 100644 --- a/coregrind/launcher-linux.c +++ b/coregrind/launcher-linux.c @@ -136,7 +136,7 @@ static const char *select_platform(const char *clientname) // Skip whitespace. while (1) { if (i == n_bytes) return NULL; - if (' ' != header[i] && '\t' == header[i]) break; + if (' ' != header[i] && '\t' != header[i]) break; i++; }