summaryrefslogtreecommitdiff
path: root/src/Converters.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Converters.c')
-rw-r--r--src/Converters.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Converters.c b/src/Converters.c
index 9e80544..9bcf791 100644
--- a/src/Converters.c
+++ b/src/Converters.c
@@ -817,7 +817,7 @@ XtCvtStringToFloat(Display *dpy,
XtPointer *closure_ret _X_UNUSED)
{
int ret;
- float f, nan;
+ float f, nan = 0.0;
(void) sscanf("NaN", "%g",
toVal->addr != NULL ? (float *) toVal->addr : &nan);