widl: Check for NULL in set_tfswrite.
This commit is contained in:
parent
11b53529ee
commit
b186c4dd0e
|
@ -1457,7 +1457,7 @@ static void set_tfswrite(type_t *type, int val)
|
|||
|
||||
if (type->kind == TKIND_ALIAS)
|
||||
type = type->orig;
|
||||
else if (is_ptr(type))
|
||||
else if (is_ptr(type) || is_array(type))
|
||||
type = type->ref;
|
||||
else
|
||||
{
|
||||
|
@ -1465,6 +1465,7 @@ static void set_tfswrite(type_t *type, int val)
|
|||
{
|
||||
var_t *v;
|
||||
LIST_FOR_EACH_ENTRY( v, type->fields, var_t, entry )
|
||||
if (v->type)
|
||||
set_tfswrite(v->type, val);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue