options_wallpaper: fix CID 1339834: Null pointer dereference

devs/zehortigoza/user-title
Boris Faure 7 years ago
parent bb2d7c4250
commit a29dbe45a7
  1. 9
      src/bin/options_wallpaper.c

@ -283,10 +283,13 @@ _refresh_directory(const char* data)
//Insert None Item
Insert_Gen_Grid_Item_Notify *notify = calloc(1,
sizeof(Insert_Gen_Grid_Item_Notify));
notify->class = item_class;
notify->item = item;
if (notify)
{
notify->class = item_class;
notify->item = item;
_insert_gengrid_item(notify);
_insert_gengrid_item(notify);
}
_backgroundlist = _rec_read_directorys(_backgroundlist, data,
item_class);

Loading…
Cancel
Save