projects
/
gnushogi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
704ea44
)
Fix detection of "otim".
author
Yann Dirson
<ydirson@free.fr>
Fri, 21 Feb 2014 22:09:51 +0000 (23:09 +0100)
committer
Yann Dirson
<ydirson@free.fr>
Sat, 22 Feb 2014 09:44:45 +0000 (10:44 +0100)
Wrong use of parentheses caused condition to be meaningless (my bad).
gnushogi/commondsp.c
patch
|
blob
|
history
diff --git
a/gnushogi/commondsp.c
b/gnushogi/commondsp.c
index
5f5b5bf
..
5e87fb4
100644
(file)
--- a/
gnushogi/commondsp.c
+++ b/
gnushogi/commondsp.c
@@
-1735,8
+1735,8
@@
InputCommand(char *command)
{
SetMachineTime(sx + strlen("time"));
}
- else if (strcmp(s, "otime") == 0 ||
- (xboard && strcmp(s, "otim")) == 0)
+ else if ((strcmp(s, "otime") == 0) ||
+ (xboard && (strcmp(s, "otim")) == 0))
{
SetOppTime(sx + strlen("otime"));
}