static
int parse_url(const char *path, struct lttng_live_ctx *ctx)
{
- char remain[3][MAXNAMLEN];
+ char remain[3][MAXNAMLEN] = { 0 };
int ret = -1, proto, proto_offset = 0;
size_t path_len = strlen(path); /* not accounting \0 */
if (ret != 2) {
fprintf(stderr, "[error] Format : "
"net://<hostname>/host/<traced_hostname>/<session_name>\n");
+ ret = -1;
goto end;
}