eolian/generator: check if the reference is generatable first

This commit is contained in:
Daniel Kolesa 2015-07-08 15:11:47 +01:00
parent 99c6396c48
commit 80eed1e285
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ _generate_ref(const char *refn, Eina_Strbuf *wbuf, Eina_Bool use_legacy)
if (!fn) goto noref;
Eina_Stringshare *fcn = eolian_function_full_c_name_get(fn, ftype, use_legacy);
if (!fcn) goto noref;
eina_strbuf_append(wbuf, fcn);
eina_stringshare_del(fcn);
return;