X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Fcontext.c;fp=lib%2Fcontext.c;h=dc7736689170e10da3ba1164f543c79e334fdbe3;hp=209cfde260582b99c8f90d137cc16e4d47d4cfaa;hb=642871ed2665ad09c5660002b678372c1a2006a2;hpb=fd94f11cb83df9a8c764c41c28f552de7d8b14e0 diff --git a/lib/context.c b/lib/context.c index 209cfde2..dc773668 100644 --- a/lib/context.c +++ b/lib/context.c @@ -107,7 +107,7 @@ int bt_context_add_trace(struct bt_context *ctx, const char *path, /* Create an handle for the trace */ handle = bt_trace_handle_create(ctx); - if (handle < 0) { + if (!handle) { fprintf(stderr, "[error] [Context] Creating trace handle %s .\n\n", path); ret = -1;