From: Jérémie Galarneau Date: Mon, 3 Mar 2014 16:27:29 +0000 (-0500) Subject: Fix: Accept an input port in the live URL when no session is provided X-Git-Tag: v2.0.0-pre1~1562 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=09e76ccc93dc3738ff1f7fb0f99b01cdeff0acc9 Fix: Accept an input port in the live URL when no session is provided 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 --- 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;