When processing nested structure pointer variables ecpg always expected an

array datatype which of course is wrong.

Applied patch by Muhammad Usama <m.usama@gmail.com> to fix this.
This commit is contained in:
Michael Meskes 2012-11-29 17:12:00 +01:00
parent 1fc698cf14
commit 086cf1458c

View File

@ -100,7 +100,11 @@ find_struct_member(char *name, char *str, struct ECPGstruct_member * members, in
}
break;
case '-':
return (find_struct_member(name, end, members->type->u.element->u.members, brace_level));
if (members->type->type == ECPGt_array)
return (find_struct_member(name, ++end, members->type->u.element->u.members, brace_level));
else
return (find_struct_member(name, ++end, members->type->u.members, brace_level));
break;
break;
case '.':
if (members->type->type == ECPGt_array)