projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl-health.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl-health.c
b/src/lib/lttng-ctl/lttng-ctl-health.c
index dc1516db5d0c7336371e10f0408927eef34a949e..955b1fcd00cb5e617d0756c95db8267032b83897 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl-health.c
+++ b/
src/lib/lttng-ctl/lttng-ctl-health.c
@@
-231,8
+231,8
@@
struct lttng_health *lttng_health_create_relayd(const char *path)
goto error;
}
goto error;
}
- ret = lttng_strncpy(lh->health_sock_path, path
?: ""
,
-
sizeof(lh->health_sock_path));
+ ret = lttng_strncpy(lh->health_sock_path, path,
+ sizeof(lh->health_sock_path));
if (ret) {
goto error;
}
if (ret) {
goto error;
}
@@
-306,7
+306,7
@@
close_error:
int closeret;
closeret = close(sock);
int closeret;
closeret = close(sock);
-
assert
(!closeret);
+
LTTNG_ASSERT
(!closeret);
}
error:
}
error:
This page took
0.023662 seconds
and
4
git commands to generate.