From 587c0229c3c42552eac0310e45f10f77c0f35a50 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 26 May 2014 11:57:40 +0100 Subject: [PATCH] Reduce scope of a couple of variables. --- riscos/message.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/riscos/message.c b/riscos/message.c index 5a9bb15fa..bfb33a8c9 100644 --- a/riscos/message.c +++ b/riscos/message.c @@ -188,14 +188,14 @@ struct active_message *ro_message_add(unsigned int message_code, bool ro_message_handle_message(wimp_event_no event, wimp_message *message) { struct active_message *test; - bool handled = false; - int ref; assert(message); if (event == wimp_USER_MESSAGE_ACKNOWLEDGE) { /* handle message acknowledgement */ - ref = message->my_ref; + bool handled = false; + int ref = message->my_ref; + if (ref == 0) return false;