changeset 34353:deb52aa6ad88

Return right pointer. Return pointer to found item, not to the start of the array.
author ib
date Mon, 12 Dec 2011 09:20:34 +0000
parents c535e4a0bd75
children 60ac9c33695b
files gui/app.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app.c	Sun Dec 11 21:32:07 2011 +0000
+++ b/gui/app.c	Mon Dec 12 09:20:34 2011 +0000
@@ -169,7 +169,7 @@
 
     for (i = 0; i <= n; i++)
         if (item[i].message == event)
-            return item;
+            return &item[i];
 
     return NULL;
 }