Code cleanup

This commit is contained in:
Pierre Pronchery 2011-03-27 16:09:30 +00:00
parent 4a19496275
commit df844d5600

View File

@ -775,8 +775,7 @@ static int _layout_applications(Desktop * desktop)
DesktopIcon * desktopicon; DesktopIcon * desktopicon;
GdkPixbuf * icon; GdkPixbuf * icon;
if(desktop->path != NULL) free(desktop->path);
free(desktop->path);
if((desktop->path = strdup(path)) == NULL) if((desktop->path = strdup(path)) == NULL)
return desktop_error(NULL, strerror(errno), 1); return desktop_error(NULL, strerror(errno), 1);
desktop->path_cnt = sizeof(path); desktop->path_cnt = sizeof(path);