From 9f3ff5d4386d600c7c408985a193d4bbd276f5e6 Mon Sep 17 00:00:00 2001 From: cedric Date: Thu, 12 Feb 2009 17:05:17 +0000 Subject: [PATCH] * evas/lib/canvas/evas_async_events.c: Use memset instead of PACKED. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@39003 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_async_events.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/canvas/evas_async_events.c b/src/lib/canvas/evas_async_events.c index 0b92e48..5411f90 100644 --- a/src/lib/canvas/evas_async_events.c +++ b/src/lib/canvas/evas_async_events.c @@ -21,7 +21,7 @@ struct _Evas_Event_Async void *event_info; void (*func)(void *target, Evas_Callback_Type type, void *event_info); Evas_Callback_Type type; -} __PACKED__ ; +}; #endif @@ -135,6 +135,8 @@ evas_async_events_put(const void *target, Evas_Callback_Type type, void *event_i if (!func) return 0; if (_fd_write == -1) return 0; + memset(&new, 0, sizeof (new)); + new.func = func; new.target = target; new.type = type; -- 2.7.4