summaryrefslogtreecommitdiff
path: root/src/Selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Selection.c')
-rw-r--r--src/Selection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Selection.c b/src/Selection.c
index a38d5c3..32984b3 100644
--- a/src/Selection.c
+++ b/src/Selection.c
@@ -1714,7 +1714,7 @@ GetSelectionValues(Widget widget,
req.ctx = ctx;
req.event.time = time;
ctx->ref_count++;
- for (i = 0, j = 0; count; count--, i++, j++) {
+ for (i = 0, j = 0; count > 0; count--, i++, j++) {
if (j >= num_callbacks)
j = 0;