Check for count value in "menu.c"

Issue #868 resolved
Former user created an issue

I caught a little, less important, thing in "menu.c". We should cancel "menu_add" if the count value is Zero.
It was a mere coincidence because my Display menu in "tweaks.c" went blank. It's because I disabled the upside-down thing and the screenshot function (don't need it) and because I have a T2i there was nothing left to display then. ;-)


Comments (2)

  1. Former user Account Deleted

    I forgot the attachment but I guess you figured it out already.

    --- menu.c
    +++ menu.c
    @@ -326,6 +326,10 @@
     #if 1
    +	// There is nothing to display. Sounds crazy
    +	if ( count == 0 )
    +		return;
     	// Walk the menu list to find a menu
     	struct menu *		menu = menu_find_by_name( name, 0);
     	if( !menu )
  2. Log in to comment