summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-02-15 09:16:02 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-03-03 14:09:54 +0200
commita934780714087d38e82c1f06db6496f999cad538 (patch)
tree3d9ce3234a27222a370c2aa1e033a03bd4fcf16d /src/bin
parent4b24559ea6e82242346f47ea0f6e49713f56ed2b (diff)
Eolian-generator: fix crash during generation
It happens when no description is supplied for an event.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/eo1_generator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/eolian/eo1_generator.c b/src/bin/eolian/eo1_generator.c
index c67576c754..9a424b82fd 100644
--- a/src/bin/eolian/eo1_generator.c
+++ b/src/bin/eolian/eo1_generator.c
@@ -229,10 +229,11 @@ eo1_header_generate(const char *classname, Eina_Strbuf *buf)
229 Eolian_Event event; 229 Eolian_Event event;
230 EINA_LIST_FOREACH(eolian_class_events_list_get(classname), l, event) 230 EINA_LIST_FOREACH(eolian_class_events_list_get(classname), l, event)
231 { 231 {
232 const char *evname; 232 const char *evname = NULL;
233 const char *evdesc; 233 const char *evdesc = NULL;
234 eolian_class_event_information_get(event, &evname, &evdesc); 234 eolian_class_event_information_get(event, &evname, &evdesc);
235 235
236 if (!evdesc) evdesc = "No description";
236 eina_strbuf_reset(tmpbuf); 237 eina_strbuf_reset(tmpbuf);
237 eina_strbuf_append(tmpbuf, evdesc); 238 eina_strbuf_append(tmpbuf, evdesc);
238 eina_strbuf_replace_all(tmpbuf, "\n", "\n * "); 239 eina_strbuf_replace_all(tmpbuf, "\n", "\n * ");