summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/edje/src/lib/edje_program.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/edje/src/lib/edje_program.c b/legacy/edje/src/lib/edje_program.c
index 084d08031e..c14c1b8dfb 100644
--- a/legacy/edje/src/lib/edje_program.c
+++ b/legacy/edje/src/lib/edje_program.c
@@ -54,8 +54,10 @@ edje_object_signal_callback_add(Evas_Object *obj, const char *emission, const ch
54 if (!ed) return; 54 if (!ed) return;
55 if (ed->delete_me) return; 55 if (ed->delete_me) return;
56 escb = calloc(1, sizeof(Edje_Signal_Callback)); 56 escb = calloc(1, sizeof(Edje_Signal_Callback));
57 escb->signal = strdup(emission); 57 if ((emission) && (emission[0]))
58 escb->source = strdup(source); 58 escb->signal = strdup(emission);
59 if ((source) && (source[0]))
60 escb->source = strdup(source);
59 escb->func = func; 61 escb->func = func;
60 escb->data = data; 62 escb->data = data;
61 ed->callbacks = evas_list_append(ed->callbacks, escb); 63 ed->callbacks = evas_list_append(ed->callbacks, escb);