projects
/
projects
/
chimara
/
chimara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4816b5d
)
Fix glulxercise / glk unit test failures (fix #26)
author
P. F. Chimento
<philip.chimento@gmail.com>
Sat, 7 May 2011 21:18:40 +0000
(23:18 +0200)
committer
P. 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
patch
|
blob
|
history
diff --git
a/libchimara/event.c
b/libchimara/event.c
index 4089b79eaa3205017e153642f0f54418a4105d01..199a837eae0343d2958773380da3757466960990 100644
(file)
--- 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;
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);
g_mutex_lock(glk_data->event_lock);