X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Fcontrolflow%2Fdrawitem.c;h=06cbde8e40d2710bf5acf4502bd10c17575eb9bd;hb=beed0826da72d30455ea860dffa1346ce261a20d;hp=d97628b021f3b9abed37236c0693a612328662b5;hpb=f61f4dca50e13aa52b1ca3941c8f420848f4353f;p=lttv.git diff --git a/lttv/modules/gui/controlflow/drawitem.c b/lttv/modules/gui/controlflow/drawitem.c index d97628b0..06cbde8e 100644 --- a/lttv/modules/gui/controlflow/drawitem.c +++ b/lttv/modules/gui/controlflow/drawitem.c @@ -106,7 +106,6 @@ #include #include -#include #include #include @@ -214,6 +213,7 @@ gboolean draw_icon( void *hook_data, void *call_data) { PropertiesIcon *properties = (PropertiesIcon*)hook_data; DrawContext *draw_context = (DrawContext*)call_data; + gboolean retval; LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes()); LttvAttributeValue value; @@ -222,8 +222,9 @@ gboolean draw_icon( void *hook_data, void *call_data) strcat(icon_name, properties->icon_name); - g_assert(lttv_iattribute_find_by_path(attributes, icon_name, - LTTV_POINTER, &value)); + retval= lttv_iattribute_find_by_path(attributes, icon_name, LTTV_POINTER, + &value); + g_assert(retval); if(unlikely(*(value.v_pointer) == NULL)) { *(value.v_pointer) = icon_info = g_new(IconStruct,1);