projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move strerror_r to compat directory
[babeltrace.git]
/
lib
/
context.c
diff --git
a/lib/context.c
b/lib/context.c
index 209cfde260582b99c8f90d137cc16e4d47d4cfaa..dc7736689170e10da3ba1164f543c79e334fdbe3 100644
(file)
--- 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);
/* 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;
fprintf(stderr, "[error] [Context] Creating trace handle %s .\n\n",
path);
ret = -1;
This page took
0.03694 seconds
and
4
git commands to generate.