X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl-health.c;h=955b1fcd00cb5e617d0756c95db8267032b83897;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hp=dc1516db5d0c7336371e10f0408927eef34a949e;hpb=e1b624d005769d1a2e9eb39fee63c73c6395fd76;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/lttng-ctl-health.c b/src/lib/lttng-ctl/lttng-ctl-health.c index dc1516db5..955b1fcd0 100644 --- 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; } - 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; } @@ -306,7 +306,7 @@ close_error: int closeret; closeret = close(sock); - assert(!closeret); + LTTNG_ASSERT(!closeret); } error: