fix possible null deref in desktop editor

SVN revision: 83155
devs/asdfuser/comp-sounds
Mike Blumenkrantz 10 years ago
parent bb6d6fefbe
commit 68e8bae442
  1. 1
      ChangeLog
  2. 1
      NEWS
  3. 2
      src/bin/e_eap_editor.c

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

@ -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…
Cancel
Save