new_struct doesn't like "" names

This commit is contained in:
Bill Currie 2002-07-13 03:20:45 +00:00
parent c0880a94a9
commit 58ecbd1171

View file

@ -473,7 +473,7 @@ _parse_type (const char **str)
return 0;
}
(*str)++;
new.aux_type = new_struct (name->str);
new.aux_type = new_struct (*name->str ? name->str : 0);
dstring_delete (name);
while (**str && **str != '}')
new_struct_field (new.aux_type, _parse_type (str), 0,