From 09e76ccc93dc3738ff1f7fb0f99b01cdeff0acc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 3 Mar 2014 11:27:29 -0500 Subject: [PATCH] Fix: Accept an input port in the live URL when no session is provided MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes a regression introduced @ 2a6d197b310 which causes Babeltrace to not list sessions if the live URL contains a port and complain that a port number is not provided after the ":" delimiter. Signed-off-by: Jérémie Galarneau --- formats/lttng-live/lttng-live-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/lttng-live/lttng-live-plugin.c b/formats/lttng-live/lttng-live-plugin.c index 608a6dab..a8cae580 100644 --- a/formats/lttng-live/lttng-live-plugin.c +++ b/formats/lttng-live/lttng-live-plugin.c @@ -135,7 +135,7 @@ int parse_url(const char *path, struct lttng_live_ctx *ctx) if (ret < 0) { goto end; } - } else { + } else if (ret == 0) { fprintf(stderr, "[error] Missing port number after delimitor ':'\n"); ret = -1; goto end; -- 2.34.1