Fix glulxercise / glk unit test failures (fix #26)
authorP. F. Chimento <philip.chimento@gmail.com>
Sat, 7 May 2011 21:18:40 +0000 (23:18 +0200)
committerP. F. Chimento <philip.chimento@gmail.com>
Sat, 7 May 2011 21:18:40 +0000 (23:18 +0200)
In the "Glk" test in the Glulxercise suite, the evtype_None returned
from glk_select_poll() should have all its unused fields zeroed.

libchimara/event.c

index 4089b79eaa3205017e153642f0f54418a4105d01..199a837eae0343d2958773380da3757466960990 100644 (file)
@@ -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);