summaryrefslogtreecommitdiff
path: root/apps/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/action.c b/apps/action.c
index 0f332a29f5..07d3cb25a2 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -161,7 +161,8 @@ int get_action_worker(int context, int timeout,
ret = do_button_check(items,button,last_button,&i);
- if (context ==(int)CONTEXT_STOPSEARCHING)
+ if ((context ==(int)CONTEXT_STOPSEARCHING) ||
+ items == NULL )
break;
if (ret == ACTION_UNKNOWN )