commit | 704f2868ed0c1350a08a2991b7db4cf086ef3389 | [log] [tgz] |
---|---|---|
author | Dan Hipschman <dsh@linux.ucla.edu> | Mon Jun 25 18:24:53 2007 -0700 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Jun 26 11:59:15 2007 +0200 |
tree | 99a606d24d09cf42a9cde7ef25b1db3810d28a29 | |
parent | 512c36cae62fa0d45ac1997abf4eb0149ce264cd [diff] |
widl: Fix crash dealing with anonymous unions.
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 @@ { 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;