summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-08-02 22:46:17 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2021-08-03 02:49:17 +0000
commit429eedf49e5bc6faaa47392290291e796b473e14 (patch)
tree1f211d1373d4fa1aea40ad52151cab64cd904b04
parent382b52b1207fbef856cd8a881d393655f2017e1d (diff)
downloadrockbox-429eedf49e5bc6faaa47392290291e796b473e14.tar.gz
rockbox-429eedf49e5bc6faaa47392290291e796b473e14.tar.bz2
rockbox-429eedf49e5bc6faaa47392290291e796b473e14.zip
list-skinned.c check label pointer for validity
Change-Id: I993ff4a2d5d1c46bad46aae7f46fa4996e67481a
-rw-r--r--apps/gui/bitmap/list-skinned.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/bitmap/list-skinned.c b/apps/gui/bitmap/list-skinned.c
index c5429738ed..a67ac8cb0a 100644
--- a/apps/gui/bitmap/list-skinned.c
+++ b/apps/gui/bitmap/list-skinned.c
@@ -197,6 +197,9 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list)
wps.data = listcfg[screen]->data;
display_lines = skinlist_get_line_count(screen, list);
label = (char *)SKINOFFSETTOPTR(get_skin_buffer(wps.data), listcfg[screen]->label);
+ if (!label)
+ return false;
+
display->set_viewport(parent);
display->clear_viewport();
current_item = list->selected_item;