summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
Diffstat (limited to 'mi')
-rw-r--r--mi/match.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mi/match.c b/mi/match.c
index df335f8..6396dbb 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -565,6 +565,10 @@ static int addstruct(Node *pat, Node *val, Dtree *start, Dtree *accept, Node ***
tail = NULL;
ntail = 0;
+ if (!memb) {
+ memb = mkexpr(ty->sdecls[i]->loc, Ogap, NULL);
+ memb->expr.type = mty;
+ }
for (j = 0; j < nlast; j++) {
/* add a _ capture if we don't specify the value */
if (!memb) {