widl: Fix possible crash in write_array_tfs.

oldstable
Alexandre Julliard 2007-01-24 20:08:06 +01:00
parent 8e3c5c9ab9
commit 8996c79d83
1 changed files with 1 additions and 1 deletions

View File

@ -819,7 +819,7 @@ static size_t write_array_tfs(FILE *file, const attr_list_t *attrs,
}
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;
int has_pointer = 0;