Don't segfault if 'icon' is null


			
			
				devs/devilhorns/wayland_egl
			
			
		
Davide Andreoli 14 years ago
parent 8e6a393cf9
commit 5f6ba77546
  1. 2
      legacy/efreet/src/lib/efreet_icon.c

@ -314,6 +314,8 @@ efreet_icon_remove_extension(const char *icon)
Eina_List *l;
char *tmp = NULL, *ext = NULL;
if (!icon) return NULL;
tmp = strdup(icon);
ext = strrchr(tmp, '.');
if (ext)

Loading…
Cancel
Save