diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 3d643c1a15a..06f00352ad2 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -1329,7 +1329,7 @@ static void set_type(var_t *v, type_t *type, int ptr_level, array_dims_t *arr, } } - if (ptr_type) + if (ptr_type && !arr) { if (is_ptr(v->type)) {