options_wallpaper: fix CID 1339834: Null pointer dereference
This commit is contained in:
parent
bb2d7c4250
commit
a29dbe45a7
|
@ -283,10 +283,13 @@ _refresh_directory(const char* data)
|
||||||
//Insert None Item
|
//Insert None Item
|
||||||
Insert_Gen_Grid_Item_Notify *notify = calloc(1,
|
Insert_Gen_Grid_Item_Notify *notify = calloc(1,
|
||||||
sizeof(Insert_Gen_Grid_Item_Notify));
|
sizeof(Insert_Gen_Grid_Item_Notify));
|
||||||
notify->class = item_class;
|
if (notify)
|
||||||
notify->item = item;
|
{
|
||||||
|
notify->class = item_class;
|
||||||
|
notify->item = item;
|
||||||
|
|
||||||
_insert_gengrid_item(notify);
|
_insert_gengrid_item(notify);
|
||||||
|
}
|
||||||
|
|
||||||
_backgroundlist = _rec_read_directorys(_backgroundlist, data,
|
_backgroundlist = _rec_read_directorys(_backgroundlist, data,
|
||||||
item_class);
|
item_class);
|
||||||
|
|
Loading…
Reference in New Issue