X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fattribute.c;fp=lttv%2Flttv%2Fattribute.c;h=7ba8f2c5108362368b225c3dce5c931539d503cf;hb=8f31828398b8a4fcdb679324291132f4f0e3dce6;hp=9966b44814d5aa39c2fa5bc8871e33e59f103958;hpb=a76ec682084c069bc4608af1b11b35cbaa7acc28;p=lttv.git diff --git a/lttv/lttv/attribute.c b/lttv/lttv/attribute.c index 9966b448..7ba8f2c5 100644 --- a/lttv/lttv/attribute.c +++ b/lttv/lttv/attribute.c @@ -339,6 +339,7 @@ void lttv_attribute_recursive_add(LttvAttribute *dest, LttvAttribute *src) Attribute *a; LttvAttributeValue value; + gboolean retval; nb = src->attributes->len; @@ -355,10 +356,14 @@ void lttv_attribute_recursive_add(LttvAttribute *dest, LttvAttribute *src) dest, a->name), (LttvAttribute *)(a->value.dv_gobject)); } else { - if(a->is_named) - g_assert(lttv_attribute_find(dest, a->name, a->type, &value)); - else - g_assert(lttv_attribute_find_unnamed(dest, a->name, a->type, &value)); + if(a->is_named) { + retval= lttv_attribute_find(dest, a->name, a->type, &value); + g_assert(retval); + } + else { + retval= lttv_attribute_find_unnamed(dest, a->name, a->type, &value); + g_assert(retval); + } switch(a->type) { case LTTV_INT: *value.v_int += a->value.dv_int;