From 004dcf0bf1f6cf67b3c2e2dd500ad1a925546d9d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 19 May 2015 22:14:00 +0200 Subject: [PATCH] Only call rarch_main_data_msg_queue_push if settings->menu.wallpaper has a valid path set --- menu/drivers/glui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index 7e1f29d321..462cdcb9f1 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -478,8 +478,9 @@ static void *glui_init(void) glui_allocate_white_texture(glui); - rarch_main_data_msg_queue_push(DATA_TYPE_IMAGE, - settings->menu.wallpaper, "cb_menu_wallpaper", 0, 1, true); + if (settings->menu.wallpaper[0] != '\0') + rarch_main_data_msg_queue_push(DATA_TYPE_IMAGE, + settings->menu.wallpaper, "cb_menu_wallpaper", 0, 1, true); return menu; error: