Fix: return negative error code in list_lttng_ust_global_events()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Feb 2016 20:14:04 +0000 (15:14 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Mar 2016 22:19:41 +0000 (17:19 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 800859b8e55437919af0eba63d3278652eba1bed..dee7bedf10cb33c30d0fc429461ff0d53829a6d9 100644 (file)
@@ -360,8 +360,8 @@ static int list_lttng_ust_global_events(char *channel_name,
        *total_size = nb_event * sizeof(struct lttng_event) + extended_len;
        tmp = zmalloc(*total_size);
        if (tmp == NULL) {
-               ret = LTTNG_ERR_FATAL;
-               goto error;
+               ret = -LTTNG_ERR_FATAL;
+               goto end;
        }
 
        extended_at = ((uint8_t *) tmp) + nb_event * sizeof(struct lttng_event);
This page took 0.035013 seconds and 4 git commands to generate.