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 | |
parent | 382b52b1207fbef856cd8a881d393655f2017e1d (diff) |
list-skinned.c check label pointer for validity
Change-Id: I993ff4a2d5d1c46bad46aae7f46fa4996e67481a
Diffstat (limited to 'apps')
-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) 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; |