summaryrefslogtreecommitdiff
path: root/src/XGetProp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XGetProp.c')
-rw-r--r--src/XGetProp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/XGetProp.c b/src/XGetProp.c
index b49328c..8c69ef2 100644
--- a/src/XGetProp.c
+++ b/src/XGetProp.c
@@ -104,8 +104,10 @@ XGetDeviceDontPropagateList(
_XRead(dpy, (char *)(&ec), sizeof(CARD32));
list[i] = (XEventClass) ec;
}
- } else
+ } else {
+ *count = 0;
_XEatDataWords(dpy, rep.length);
+ }
}
UnlockDisplay(dpy);