projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
92b1e8a
)
Give numeric options the value 0 if a non-numeric text is entered. Before the value...
author
Byrial Jensen
<byrial@vip.cybercity.dk>
Sun, 18 Dec 2011 16:08:46 +0000 (17:08 +0100)
committer
Byrial Jensen
<byrial@vip.cybercity.dk>
Sun, 18 Dec 2011 16:08:46 +0000 (17:08 +0100)
xoptions.c
patch
|
blob
|
history
diff --git
a/xoptions.c
b/xoptions.c
index
c1ae427
..
ecfe022
100644
(file)
--- a/
xoptions.c
+++ b/
xoptions.c
@@
-155,7
+155,7
@@
void SpinCallback(w, client_data, call_data)
String name, val;
Arg args[16];
char buf[MSG_SIZ], *p;
- int j;
+ int j = 0; // Initialiasation is necessary because the text value may be non-numeric causing the scanf conversion to fail
int data = (intptr_t) client_data;
XtSetArg(args[0], XtNlabel, &name);