fix possible null deref in desktop editor

SVN revision: 83155
This commit is contained in:
Mike Blumenkrantz 2013-01-23 10:50:29 +00:00
parent bb6d6fefbe
commit 68e8bae442
3 changed files with 3 additions and 1 deletions

View File

@ -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
View File

@ -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

View File

@ -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);