forked from enlightenment/enlightenment
fix possible null deref in desktop editor
SVN revision: 83155
This commit is contained in:
parent
bb6d6fefbe
commit
68e8bae442
|
@ -10,6 +10,7 @@
|
|||
* fixed small leak in e_import_dialog_show during failure case
|
||||
* fixed small leak in illume2 policy config
|
||||
* fixed path setting in import dialog
|
||||
* fixed possible NULL deref in desktop editor
|
||||
|
||||
2013-01-22 Mike Blumenkrantz
|
||||
|
||||
|
|
1
NEWS
1
NEWS
|
@ -118,3 +118,4 @@ Fixes:
|
|||
* fixed small leak in e_import_dialog_show during failure case
|
||||
* fixed small leak in illume2 policy config
|
||||
* fixed path setting in import dialog
|
||||
* fixed possible NULL deref in desktop editor
|
||||
|
|
|
@ -143,7 +143,7 @@ e_desktop_border_create(E_Border *bd)
|
|||
*/
|
||||
char file[PATH_MAX];
|
||||
|
||||
snprintf(file, sizeof(file), "%s-%.6f.png", bname, ecore_time_get());
|
||||
snprintf(file, sizeof(file), "%s-%.6f.png", bname ?: "", ecore_time_get());
|
||||
snprintf(path, sizeof(path), "%s/%s", icon_dir, file);
|
||||
if (e_util_icon_save(&(bd->client.netwm.icons[0]), path))
|
||||
desktop->icon = strdup(file);
|
||||
|
|
Loading…
Reference in New Issue