From 51e18ffb2fa40a3dbb28ddb9789bbf0e2665132a Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Fri, 18 Jan 2013 01:18:11 -0500 Subject: cppcheck: [nds/gui.c:3573]: (error) Possible null pointer dereference: current_option - otherwise it is redundant to check if current_option is null at line 3576 --- source/nds/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/nds') diff --git a/source/nds/gui.c b/source/nds/gui.c index baa6f6b..6efb59d 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -3570,10 +3570,10 @@ u32 menu(u16 *screen) current_option = current_menu->options + current_option_num; - if(current_option -> option_type & HIDEN_TYPE) + if(!current_option) break; - if(!current_option) + if(current_option -> option_type & HIDEN_TYPE) break; if(current_menu->key_function) -- cgit v1.2.3