eolian: no need to concat name in this case

This commit is contained in:
Daniel Kolesa 2014-08-27 11:38:05 +01:00
parent a9a7ed6c52
commit 901d1343fd
1 changed files with 3 additions and 5 deletions

View File

@ -103,12 +103,10 @@ _type_generate(const Eolian_Type *tp, Eina_Bool in_typedef, Eina_Bool full)
case EOLIAN_TYPE_ENUM:
{
const Eolian_Enum_Type_Field *member;
char *name = _concat_name(tp);
char *name;
if (!full)
{
free(name);
break;
}
break;
name = _concat_name(tp);
if (in_typedef)
{
eina_strbuf_append_printf(buf, "enum %s", name);