decl_union *dunion = init_decl_union(predef_union->var_name, dargs);
dunion->size = predef_union->size;
- dunion->align = dunion->offset;
+ dunion->align = predef_union->offset;
for (member = &predef_union[1]; member->type_tag; ++member) {
decl_type *type;
decl_var *dvar;
{
int i, n;
char *sep = NULL, *cpy = strdup(paths), *ptr = cpy;
- struct dirent **entries = NULL;
+ struct dirent **entries;
do {
sep = strchr(ptr, ':');
*sep = 0;
}
+ entries = NULL;
n = php_scandir(ptr, &entries, psi_select_dirent, alphasort);
if (n > 0) {
}
free(C->structs);
}
+ if (C->unions) {
+ if (C->unions->list) {
+ free(C->unions->list);
+ }
+ free(C->unions);
+ }
if (C->enums) {
if (C->enums->list) {
free(C->enums->list);