Module: wine Branch: master Commit: 704f2868ed0c1350a08a2991b7db4cf086ef3389 URL: http://source.winehq.org/git/wine.git/?a=commit;h=704f2868ed0c1350a08a2991b7...
Author: Dan Hipschman dsh@linux.ucla.edu Date: Mon Jun 25 18:24:53 2007 -0700
widl: Fix crash dealing with anonymous unions.
---
tools/widl/typegen.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 5fec7c7..f3958dd 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -574,7 +574,7 @@ static size_t write_conf_or_var_desc(FILE *file, const func_t *func, const type_ { unsigned int align = 0; /* FIXME: take alignment into account */ - if (!strcmp(var->name, subexpr->u.sval)) + if (var->name && !strcmp(var->name, subexpr->u.sval)) { correlation_variable = var->type; break;