aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2013-09-11 10:29:36 -0300
committerJosé Roberto de Souza <jose.souza@intel.com>2013-09-19 15:47:22 -0300
commit5a8d3125b5f7d6b959e19691b56007c7d195b299 (patch)
tree75ca21de6b2015937dce408034a0880ff9fc2654
parenteldbus: Use FDO error message to timeout (diff)
downloadefl-5a8d3125b5f7d6b959e19691b56007c7d195b299.tar.gz
eldbus codegen: Initialize signal events with 0
-rw-r--r--src/bin/eldbus/source_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eldbus/source_client.c b/src/bin/eldbus/source_client.c
index 0586d0afa1..f86c62c86c 100644
--- a/src/bin/eldbus/source_client.c
+++ b/src/bin/eldbus/source_client.c
@@ -313,7 +313,7 @@ source_client_signal_generate(const DBus_Signal *sig, Eina_Strbuf *c_code, Eina_
Eina_Strbuf *string_free = eina_strbuf_new();
eina_strbuf_append_printf(c_init_function, " eldbus_proxy_signal_handler_add(proxy, \"%s\", %s, proxy);\n", sig->name, sig->cb_name);
- eina_strbuf_append_printf(c_header, "int %s;\n", sig->signal_event);
+ eina_strbuf_append_printf(c_header, "int %s = 0;\n", sig->signal_event);
eina_strbuf_append_printf(h, "extern int %s;\n", sig->signal_event);
eina_strbuf_append_printf(c_init_function, " if (!%s)\n", sig->signal_event);
eina_strbuf_append_printf(c_init_function, " %s = ecore_event_type_new();\n", sig->signal_event);