]> git.lttng.org Git - lttng-ust.git/commitdiff
Fix: remove uninitialised value
authorGabriel-Andrew Pollo-Guilbert <gabriel.pollo-guilbert@efficios.com>
Mon, 29 Jul 2019 15:14:26 +0000 (11:14 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Jul 2019 15:19:36 +0000 (11:19 -0400)
Commit 973eac638e4fd introduces an uninitialised value that may prevent
shared memory from being allocated. The compiler didn't give any warning
because the pointer to the value is sent to a function that don't do anything
with it. We simply pass NULL to that function.

Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabriel.pollo-guilbert@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c

index 889445783bac3c160585a8e63d73ee88fe2f2a3e..fb7e18db988148fda6f4bac162797958ec4ec6af 100644 (file)
@@ -871,17 +871,14 @@ int handle_message(struct sock_info *sock_info,
        }
        case LTTNG_UST_STREAM:
        {
-               uint64_t memory_map_size;
-
                /* Receive shm_fd, wakeup_fd */
                ret = ustcomm_recv_stream_from_sessiond(sock,
-                       &memory_map_size,
+                       NULL,
                        &args.stream.shm_fd,
                        &args.stream.wakeup_fd);
                if (ret) {
                        goto error;
                }
-               lum->u.stream.len = memory_map_size;
 
                if (ops->cmd)
                        ret = ops->cmd(lum->handle, lum->cmd,
This page took 0.030069 seconds and 4 git commands to generate.