Skip to content

Commit

Permalink
fix shadowed wariable
Browse files Browse the repository at this point in the history
kisvegabor committed Aug 12, 2021
1 parent d0c1c67 commit df60018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/draw/lv_img_decoder.c
Original file line number Diff line number Diff line change
@@ -88,8 +88,8 @@ lv_res_t lv_img_decoder_get_info(const void * src, lv_img_header_t * header)

lv_img_src_t src_type = lv_img_src_get_type(src);
if(src_type == LV_IMG_SRC_VARIABLE) {
const lv_img_dsc_t * dsc = src;
if(dsc->data == NULL) return LV_RES_INV;
const lv_img_dsc_t * img_dsc = src;
if(img_dsc->data == NULL) return LV_RES_INV;
}

lv_res_t res = LV_RES_INV;

0 comments on commit df60018

Please sign in to comment.