projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b373b56
)
bugfix: don't crash on possibly-null gadman bg string extensions
author
Mike Blumenkrantz
<zmike@samsung.com>
Thu, 13 Mar 2014 16:28:36 +0000
(12:28 -0400)
committer
Mike Blumenkrantz
<zmike@samsung.com>
Thu, 13 Mar 2014 16:35:39 +0000
(12:35 -0400)
CID 1132749
src/modules/gadman/e_mod_gadman.c
patch
|
blob
|
history
diff --git
a/src/modules/gadman/e_mod_gadman.c
b/src/modules/gadman/e_mod_gadman.c
index
1d39ceb
..
d7bdbe0
100644
(file)
--- a/
src/modules/gadman/e_mod_gadman.c
+++ b/
src/modules/gadman/e_mod_gadman.c
@@
-607,7
+607,6
@@
void
gadman_update_bg(void)
{
Evas_Object *obj;
- const char *ext;
if (!Man->gadcons[GADMAN_LAYER_TOP]) return;
if (!Man->conf) return;
@@
-638,8
+637,7
@@
gadman_update_bg(void)
break;
case BG_CUSTOM:
- ext = strrchr(Man->conf->custom_bg, '.');
- if (!strcmp(ext, ".edj") || !strcmp(ext, ".EDJ"))
+ if (eina_str_has_extension(Man->conf->custom_bg, ".edj"))
{
//THIS IS FOR E19 backgrounds
obj = edje_object_add(Man->comp->evas);