widl: Fix possible crash in write_array_tfs.
This commit is contained in:
parent
8e3c5c9ab9
commit
8996c79d83
|
@ -819,7 +819,7 @@ static size_t write_array_tfs(FILE *file, const attr_list_t *attrs,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const expr_t *dim = LIST_ENTRY( list_head( array ), expr_t, entry );
|
const expr_t *dim = array ? LIST_ENTRY( list_head( array ), expr_t, entry ) : NULL;
|
||||||
size_t pointer_start_offset = *typestring_offset;
|
size_t pointer_start_offset = *typestring_offset;
|
||||||
int has_pointer = 0;
|
int has_pointer = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue