diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-08-02 22:46:17 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2021-08-03 02:49:17 +0000 |
commit | 429eedf49e5bc6faaa47392290291e796b473e14 (patch) | |
tree | 1f211d1373d4fa1aea40ad52151cab64cd904b04 /apps/gui/bitmap/list-skinned.c | |
parent | 382b52b1207fbef856cd8a881d393655f2017e1d (diff) | |
download | rockbox-429eedf49e5bc6faaa47392290291e796b473e14.tar.gz rockbox-429eedf49e5bc6faaa47392290291e796b473e14.zip |
list-skinned.c check label pointer for validity
Change-Id: I993ff4a2d5d1c46bad46aae7f46fa4996e67481a
Diffstat (limited to 'apps/gui/bitmap/list-skinned.c')
-rw-r--r-- | apps/gui/bitmap/list-skinned.c | 3 |
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) | |||
197 | wps.data = listcfg[screen]->data; | 197 | wps.data = listcfg[screen]->data; |
198 | display_lines = skinlist_get_line_count(screen, list); | 198 | display_lines = skinlist_get_line_count(screen, list); |
199 | label = (char *)SKINOFFSETTOPTR(get_skin_buffer(wps.data), listcfg[screen]->label); | 199 | label = (char *)SKINOFFSETTOPTR(get_skin_buffer(wps.data), listcfg[screen]->label); |
200 | if (!label) | ||
201 | return false; | ||
202 | |||
200 | display->set_viewport(parent); | 203 | display->set_viewport(parent); |
201 | display->clear_viewport(); | 204 | display->clear_viewport(); |
202 | current_item = list->selected_item; | 205 | current_item = list->selected_item; |