fix compiler uninitialized variable
authorThomas Huehn <thomas.huehn@hs-nordhausen.de>
Mon, 27 Sep 2021 23:59:39 +0000 (01:59 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sat, 19 Feb 2022 10:39:06 +0000 (11:39 +0100)
commit51283f9f1df5dedcba35f40367ef5d4ab1a55e0b
tree70e88d78bbd701eee3063eef2ccd9468684e214c
parent2f8b1360df25bab375ec60bbba2dce8dd796161c
fix compiler uninitialized variable

In file included from ubus.c:20:
ubus.c: In function 'uh_ubus_list_cb':
libubox/blobmsg.h:256:9: error: 'o' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  256 |         blob_nest_end(buf, cookie);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
ubus.c:591:19: note: 'o' was declared here
  591 |         void *t, *o;
      |                   ^
cc1: all warnings being treated as errors

Signed-off-by: Thomas Huehn <thomas.huehn@hs-nordhausen.de>
Acked-by: Alexander Couzens <lynxis@fe80.eu>
ubus.c