Fix: lttng-live should accept 0 in addresses
[babeltrace.git] / formats / lttng-live / lttng-live.c
index 831877ab36cc016de15ac50aef281510ad699f4b..8f734f7bd9906e9f844bd86bd2cb4a21681dd318 100644 (file)
@@ -55,7 +55,7 @@ static int parse_url(const char *path, char *hostname, int *port,
        }
        /* TODO : parse for IPv6 as well */
        /* Parse the hostname or IP */
-       ret = sscanf(path + proto_offset, "%[a-zA-Z.1-9%-]%s",
+       ret = sscanf(path + proto_offset, "%[a-zA-Z.0-9%-]%s",
                hostname, remain);
        if (ret == 2) {
                /* Optional port number */
@@ -101,10 +101,6 @@ static int lttng_live_open_trace_read(const char *path)
        int ret = 0;
        struct lttng_live_ctx ctx;
 
-       /* set default */
-       opt_context_field_names = 1;
-       opt_payload_field_names = 1;
-
        ctx.session = g_new0(struct lttng_live_session, 1);
 
        /* We need a pointer to the context from the packet_seek function. */
This page took 0.023203 seconds and 4 git commands to generate.