ubox: Fix some memory leaks
[project/ubox.git] / log / logd.c
index d778909e9093a7db3610cbee9d7210c08bce52b1..915348e3bce0b27086855e20022727aae5bd7b2f 100644 (file)
@@ -84,7 +84,7 @@ read_log(struct ubus_context *ctx, struct ubus_object *obj,
                struct blob_attr *msg)
 {
        struct client *cl;
-       struct blob_attr *tb[__READ_MAX];
+       struct blob_attr *tb[__READ_MAX] = { 0 };
        struct log_head *l;
        int count = 0;
        int fds[2];