summaryrefslogtreecommitdiff
path: root/src/scrollbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scrollbar.c')
-rw-r--r--src/scrollbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scrollbar.c b/src/scrollbar.c
index 1723931..2c3fc3b 100644
--- a/src/scrollbar.c
+++ b/src/scrollbar.c
@@ -357,7 +357,7 @@ sb_handle_motion_notify(event_t *ev)
unsigned char
scrollbar_dispatch_event(event_t *ev)
{
- if (scrollbar_event_data.handlers[ev->type] != NULL) {
+ if (scrollbar_event_data.handlers[ev->type]) {
return ((scrollbar_event_data.handlers[ev->type]) (ev));
}
return (0);