X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fattribute.c;h=7ba8f2c5108362368b225c3dce5c931539d503cf;hb=bcd59dcb23188ff6eec89936e8158d901e1cbf9c;hp=9966b44814d5aa39c2fa5bc8871e33e59f103958;hpb=f61f4dca50e13aa52b1ca3941c8f420848f4353f;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;