From: skeezix Date: Sat, 28 Jan 2012 01:34:34 +0000 (-0500) Subject: Fix for bug that cropped up in recent changes; no apps at all should be fine, just... X-Git-Tag: sz_beta3~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commitdiff_plain;h=7c74f804e8b6ceb121813cc4ea25fe33c6ecc419;ds=sidebyside Fix for bug that cropped up in recent changes; no apps at all should be fine, just useless :) Specifically, no _tabs_ should be fine. --- diff --git a/minimenu/mmui.c b/minimenu/mmui.c index bb8a4ef..89110b8 100644 --- a/minimenu/mmui.c +++ b/minimenu/mmui.c @@ -2890,7 +2890,7 @@ void ui_post_scan ( void ) { } // default cat // if we're sent right to a dirbrowser tab, restock it now (normally we restock on entry) - if ( g_categories [ ui_category ] -> fspath ) { + if ( g_categories [ ui_category ] && g_categories [ ui_category ] -> fspath ) { printf ( "Restock on start: '%s'\n", g_categories [ ui_category ] -> fspath ); category_fs_restock ( g_categories [ ui_category ] ); } @@ -2919,7 +2919,7 @@ unsigned char ui_threaded_defered_icon ( void *p ) { // work at it in order within current category - mm_appref_t *refiter = g_categories [ ui_category ] -> refs; + mm_appref_t *refiter = g_categories [ ui_category ] ? g_categories [ ui_category ] -> refs : NULL; while ( refiter && ! g_icon_thread_stop ) { iter = refiter -> ref;