From: Rodolfo García Peñas (kix) Date: Wed, 14 Nov 2012 21:11:49 +0000 (+0100) Subject: wIconUpdate removed scr variable X-Git-Tag: wmaker-0.95.4~35 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/2eb1107e20f889ef88f0055b8544b950dd5024a5 wIconUpdate removed scr variable The variable scr is not used, so MUST be removed. This variable can cause a segfault because icon could not exist. --- diff --git a/src/icon.c b/src/icon.c index 1ed90bd6..6a0e817a 100644 --- a/src/icon.c +++ b/src/icon.c @@ -601,11 +601,8 @@ static void unset_icon_image(WIcon *icon) void wIconUpdate(WIcon *icon) { - WScreen *scr = icon->core->screen_ptr; WWindow *wwin = icon->owner; - assert(scr->icon_tile != NULL); - if (wwin && WFLAGP(wwin, always_user_icon)) { /* Forced use user_icon */ get_rimage_icon_from_user_icon(icon);