summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/kernel.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-08-01 09:07:09 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-08-01 09:07:09 +0000
commitabf3435ca724bf6201c663f33c2e4394ae48156d (patch)
tree6915a12a18af287d923e0fba639171c8912255e8 /uisimulator/sdl/kernel.c
parentf7f8ee1645995b985563a7244d345b8490886cb6 (diff)
downloadrockbox-abf3435ca724bf6201c663f33c2e4394ae48156d.tar.gz
rockbox-abf3435ca724bf6201c663f33c2e4394ae48156d.tar.bz2
rockbox-abf3435ca724bf6201c663f33c2e4394ae48156d.zip
Slightly less hacky sim queue_send(), fixes simulator crashes FS#7051 and FS#7245.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14113 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/kernel.c')
-rw-r--r--uisimulator/sdl/kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/sdl/kernel.c b/uisimulator/sdl/kernel.c
index 98d509f6a6..b2bf77026f 100644
--- a/uisimulator/sdl/kernel.c
+++ b/uisimulator/sdl/kernel.c
@@ -191,7 +191,7 @@ intptr_t queue_send(struct event_queue *q, long id, intptr_t data)
if(q->send)
{
struct thread_entry **spp = &q->send->senders[wr];
- struct thread_entry sender;
+ static struct thread_entry sender;
if(*spp)
{