X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fmain.c;fp=lttv%2Flttv%2Fmain.c;h=e894ac189b76ab7267c795f88b70c67547fc5895;hb=8f31828398b8a4fcdb679324291132f4f0e3dce6;hp=eca23438b09cd6dc21eda2503598a777c65e705d;hpb=a76ec682084c069bc4608af1b11b35cbaa7acc28;p=lttv.git diff --git a/lttv/lttv/main.c b/lttv/lttv/main.c index eca23438..e894ac18 100644 --- a/lttv/lttv/main.c +++ b/lttv/lttv/main.c @@ -95,6 +95,7 @@ int main(int argc, char **argv) *profile_memory_long_option = "--memory"; gboolean profile_memory = FALSE; + gboolean retval; LttvAttributeValue value; @@ -136,17 +137,21 @@ int main(int argc, char **argv) /* Create a number of hooks lists */ - g_assert(lttv_iattribute_find_by_path(attributes, "hooks/options/before", - LTTV_POINTER, &value)); + retval= lttv_iattribute_find_by_path(attributes, "hooks/options/before", + LTTV_POINTER, &value); + g_assert(retval); *(value.v_pointer) = before_options; - g_assert(lttv_iattribute_find_by_path(attributes, "hooks/options/after", - LTTV_POINTER, &value)); + retval= lttv_iattribute_find_by_path(attributes, "hooks/options/after", + LTTV_POINTER, &value); + g_assert(retval); *(value.v_pointer) = after_options; - g_assert(lttv_iattribute_find_by_path(attributes, "hooks/main/before", - LTTV_POINTER, &value)); + retval= lttv_iattribute_find_by_path(attributes, "hooks/main/before", + LTTV_POINTER, &value); + g_assert(retval); *(value.v_pointer) = before_main; - g_assert(lttv_iattribute_find_by_path(attributes, "hooks/main/after", - LTTV_POINTER, &value)); + retval= lttv_iattribute_find_by_path(attributes, "hooks/main/after", + LTTV_POINTER, &value); + g_assert(retval); *(value.v_pointer) = after_main;