Skip to content

Commit

Permalink
fix shadowed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Aug 12, 2021
1 parent ff087da commit e209260
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
@@ -111,8 +111,8 @@ lv_res_t lv_img_decoder_open(lv_img_decoder_dsc_t * dsc, const void * src, lv_co
if(src == NULL) return LV_RES_INV;
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;
}

dsc->color = color;

0 comments on commit e209260

Please sign in to comment.