On Tue 10 May 2016 10:39:21 AM CEST, Kevin Wolf wrote: >> s->children = g_renew(BdrvChild *, s->children, ++s->num_children); >> s->children[s->num_children] = child; > > Without having checked the context, this code is not equivalent. You > need to access s->children[s->num_children - 1] now in the second > line.
Yeah, you are both right, sorry for the mistake! Berto