From 8996c79d83bd51e99faf16d6427b015c91196abd Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 24 Jan 2007 20:08:06 +0100 Subject: [PATCH] widl: Fix possible crash in write_array_tfs. --- tools/widl/typegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 936812db63e..585ecc149f9 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -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;