X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fcontext_dump.c;h=8e11eca41763589155de8a03fed85780aa463a01;hb=8d2ff6a3b85203ea5f8398f846a7764fd0e1d126;hp=b778525c93a4f4aa76bf9df59a2240933da73036;hpb=d3171526ab7658114cac4ebe1098af4b038e576e;p=m6w6%2Fext-psi diff --git a/src/context_dump.c b/src/context_dump.c index b778525..8e11eca 100644 --- a/src/context_dump.c +++ b/src/context_dump.c @@ -127,10 +127,10 @@ static inline void dump_impl_set_value(int fd, set_value *set, unsigned level, i dprintf(fd, ", "); dump_num_exp(fd, set->num); } - if (set->inner && set->func->type != PSI_T_ELLIPSIS) { + if (set->inner && set->inner->vals && set->func->type != PSI_T_ELLIPSIS) { dprintf(fd, ",\n"); - for (i = 0; i < set->count; ++i) { - dump_impl_set_value(fd, set->inner[i], level+1, i == (set->count - 1)); + for (i = 0; i < set->inner->count; ++i) { + dump_impl_set_value(fd, set->inner->vals[i], level+1, i == (set->inner->count - 1)); } /* only if inner stmts, i.e. with new lines, were dumped */ dump_level(fd, level);