X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;h=3e532ad60067c6db4a454eb2d4d6b3ab890a6d7e;hb=9d035200e9006c4d4cf6951c54641e06c0bdf2bc;hp=6bf19a46acadc97ee3815a91189835daa8e307ba;hpb=3dd05a854fd61d14a2c395c0c82678abd63798e9;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 6bf19a46a..3e532ad60 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -1399,7 +1399,7 @@ int lttng_session_daemon_alive(void) return ret; } - if (strlen(sessiond_sock_path) == 0) { + if (*sessiond_sock_path == '\0') { /* * No socket path set. Weird error which means the constructor was not * called.