X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fcontext.c;h=dc7736689170e10da3ba1164f543c79e334fdbe3;hb=642871ed2665ad09c5660002b678372c1a2006a2;hp=209cfde260582b99c8f90d137cc16e4d47d4cfaa;hpb=37b99bdba8478569634dd5ceecea50d1e9f9ac0a;p=babeltrace.git 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;