From: P. F. Chimento Date: Sat, 7 May 2011 21:18:40 +0000 (+0200) Subject: Fix glulxercise / glk unit test failures (fix #26) X-Git-Tag: v0.9~84 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=8dc6164b89a267b72b8d8617e328542b94e26e83;p=projects%2Fchimara%2Fchimara.git Fix glulxercise / glk unit test failures (fix #26) In the "Glk" test in the Glulxercise suite, the evtype_None returned from glk_select_poll() should have all its unused fields zeroed. --- diff --git a/libchimara/event.c b/libchimara/event.c index 4089b79..199a837 100644 --- a/libchimara/event.c +++ b/libchimara/event.c @@ -239,6 +239,9 @@ glk_select_poll(event_t *event) ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key); event->type = evtype_None; + event->win = NULL; + event->val1 = 0; + event->val2 = 0; g_mutex_lock(glk_data->event_lock);