From d4a137d52722ac3448b8703e6d0fd09ee7fcc1e2 Mon Sep 17 00:00:00 2001 From: Pawel Date: Wed, 25 Jul 2012 17:35:26 +0200 Subject: [PATCH] 0023347: Expression '(* q == ' ') && (* q == '\t')' is always false. Probably the '||' operator should be used here. Replacing '&&' with '||'. --- src/Draw/Draw_VariableCommands.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Draw/Draw_VariableCommands.cxx b/src/Draw/Draw_VariableCommands.cxx index 88743f1a50..95728f73ce 100755 --- a/src/Draw/Draw_VariableCommands.cxx +++ b/src/Draw/Draw_VariableCommands.cxx @@ -1036,7 +1036,7 @@ static Standard_Real ParseValue(char*& name) // count arguments Standard_Integer argc = 1; char* q = p; - while ((*q == ' ') && (*q == '\t')) q++; + while ((*q == ' ') || (*q == '\t')) q++; if (*q == '(') { Standard_Integer pc = 1; argc = 2;