summaryrefslogtreecommitdiff
path: root/src/NextEvent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/NextEvent.c')
-rw-r--r--src/NextEvent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/NextEvent.c b/src/NextEvent.c
index bcc00d5..c696af3 100644
--- a/src/NextEvent.c
+++ b/src/NextEvent.c
@@ -579,6 +579,7 @@ int _XtWaitForSomething(
#ifdef USE_POLL
wf.fdlist = NULL;
wf.stack = fdlist;
+ wf.fdlistlen = wf.num_dpys = 0;
#endif
WaitLoop:
@@ -1438,7 +1439,7 @@ XtInputMask XtAppPending(
X_GETTIMEOFDAY (&cur_time);
FIXUP_TIMEVAL(cur_time);
if ((IS_AT_OR_AFTER(app->timerQueue->te_timer_value, cur_time)) &&
- (app->timerQueue->te_proc != 0)) {
+ (app->timerQueue->te_proc != NULL)) {
ret |= XtIMTimer;
}
}