From: compudj Date: Tue, 14 Oct 2008 18:31:38 +0000 (+0000) Subject: update assert code X-Git-Tag: v0.12.20~385 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ac3b1c7df56f3d157cde66a2f4b7af5633337b64;p=lttv.git update assert code git-svn-id: http://ltt.polymtl.ca/svn@3104 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/trunk/lttv/ltt/tracefile.c b/trunk/lttv/ltt/tracefile.c index d30dc511..2f530acc 100644 --- a/trunk/lttv/ltt/tracefile.c +++ b/trunk/lttv/ltt/tracefile.c @@ -776,7 +776,8 @@ LttTrace *ltt_trace_open(const gchar *pathname) g_assert(group->len > 0); tf = &g_array_index (group, LttTracefile, 0); header = (ltt_subbuffer_header_t *)tf->buffer.head; - g_assert(parse_trace_header(header, tf, t) == 0); + ret = parse_trace_header(header, tf, t); + g_assert(!ret); t->num_cpu = group->len;