summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2013-09-11 10:29:36 -0300
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-12-14 19:52:03 -0500
commit5c96239cb5acafd2b11c07d5ec7ad3f2f3618543 (patch)
treef86041d301bbf4a070405e76ce58dd413eb3aeda
parentb5a2b9d2505cba433587edb13a9efa716a2168bc (diff)
eldbus codegen: Initialize signal events with 0
-rw-r--r--src/codegen/source_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/source_client.c b/src/codegen/source_client.c
index 0586d0a..f86c62c 100644
--- a/src/codegen/source_client.c
+++ b/src/codegen/source_client.c
@@ -313,7 +313,7 @@ source_client_signal_generate(const DBus_Signal *sig, Eina_Strbuf *c_code, Eina_
313 Eina_Strbuf *string_free = eina_strbuf_new(); 313 Eina_Strbuf *string_free = eina_strbuf_new();
314 314
315 eina_strbuf_append_printf(c_init_function, " eldbus_proxy_signal_handler_add(proxy, \"%s\", %s, proxy);\n", sig->name, sig->cb_name); 315 eina_strbuf_append_printf(c_init_function, " eldbus_proxy_signal_handler_add(proxy, \"%s\", %s, proxy);\n", sig->name, sig->cb_name);
316 eina_strbuf_append_printf(c_header, "int %s;\n", sig->signal_event); 316 eina_strbuf_append_printf(c_header, "int %s = 0;\n", sig->signal_event);
317 eina_strbuf_append_printf(h, "extern int %s;\n", sig->signal_event); 317 eina_strbuf_append_printf(h, "extern int %s;\n", sig->signal_event);
318 eina_strbuf_append_printf(c_init_function, " if (!%s)\n", sig->signal_event); 318 eina_strbuf_append_printf(c_init_function, " if (!%s)\n", sig->signal_event);
319 eina_strbuf_append_printf(c_init_function, " %s = ecore_event_type_new();\n", sig->signal_event); 319 eina_strbuf_append_printf(c_init_function, " %s = ecore_event_type_new();\n", sig->signal_event);