From: Pawel Date: Wed, 25 Jul 2012 15:35:26 +0000 (+0200) Subject: 0023347: Expression '(* q == ' ') && (* q == '\t')' is always false. Probably the... X-Git-Tag: V6_5_4_beta1~83 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=d4a137d52722ac3448b8703e6d0fd09ee7fcc1e2;p=occt-copy.git 0023347: Expression '(* q == ' ') && (* q == '\t')' is always false. Probably the '||' operator should be used here. Replacing '&&' with '||'. --- 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;