Module: wine Branch: master Commit: b186c4dd0e7bcb92f147fc00e473e495deaef62b URL: http://source.winehq.org/git/wine.git/?a=commit;h=b186c4dd0e7bcb92f147fc00e4...
Author: Dan Hipschman dsh@linux.ucla.edu Date: Thu Jun 7 17:43:06 2007 -0700
widl: Check for NULL in set_tfswrite.
---
tools/widl/typegen.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 2327e21..7c0921e 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -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,7 +1465,8 @@ static void set_tfswrite(type_t *type, int val) { var_t *v; LIST_FOR_EACH_ENTRY( v, type->fields, var_t, entry ) - set_tfswrite(v->type, val); + if (v->type) + set_tfswrite(v->type, val); }
return;