Skip to content

Commit

Permalink
Fix possible nullptr dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Nov 11, 2024
1 parent 3f0057e commit c578251
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui/page_playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ static lv_obj_t *page_playback_create(lv_obj_t *parent, panel_arr_t *arr) {
}

static void show_pb_item(uint8_t pos, media_file_node_t *node) {
if (node == NULL) {
return;
}

char fname[256];
const char * const label = node->label;
if (pb_ui[pos].state == ITEM_STATE_INVISIBLE) {
Expand Down

0 comments on commit c578251

Please sign in to comment.