diff options
Diffstat (limited to 'src/Selection.c')
-rw-r--r-- | src/Selection.c | 2 |
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; |