summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-13 13:44:46 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-13 13:45:01 +0100
commit894a1e3cfdfd4278b85acf292186a757885ea2a3 (patch)
tree5e64a3784f5bca0dfdebd6b43b9a762ddb5b6c1a /src/bin
parent5c3a08433aa5797582f6cda12b3bb51b89f367d0 (diff)
eolian: check inherit validity before using it
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/eo_generator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 738f32a153..a9c1ae60cf 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -907,6 +907,12 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
907 { 907 {
908 const Eolian_Class *inherit_class = eolian_class_get_by_name(inherit_name); 908 const Eolian_Class *inherit_class = eolian_class_get_by_name(inherit_name);
909 _eolian_class_vars inherit_env; 909 _eolian_class_vars inherit_env;
910 if (!inherit_class)
911 {
912 ERR("Class %s has an unknown inherit %s", class_env.full_classname, inherit_name);
913 eina_iterator_free(itr);
914 goto end;
915 }
910 _class_env_create(inherit_class, NULL, &inherit_env); 916 _class_env_create(inherit_class, NULL, &inherit_env);
911 eina_strbuf_append_printf(tmpbuf, "%s_%s, ", inherit_env.upper_classname, 917 eina_strbuf_append_printf(tmpbuf, "%s_%s, ", inherit_env.upper_classname,
912 inherit_env.upper_classtype); 918 inherit_env.upper_classtype);