Fix: fields should be initialized to NULL
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Mar 2013 16:55:01 +0000 (11:55 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Mar 2013 16:55:01 +0000 (11:55 -0500)
Fixes uninitialized pointer free.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-comm/lttng-ust-comm.c

index 00b1d43af0a4ec1610e4d1a83d204a2c064236b3..3a60ba1a4be09c6e4f9f543b31f274bdbea9d0f3 100644 (file)
@@ -831,7 +831,7 @@ int ustcomm_register_event(int sock,
                struct ustcomm_notify_event_reply r;
        } reply;
        size_t signature_len, fields_len, model_emf_uri_len;
-       struct ustctl_field *fields;
+       struct ustctl_field *fields = NULL;
        size_t nr_write_fields = 0;
        int ret;
 
This page took 0.025396 seconds and 4 git commands to generate.