From 90ab6923775b2e011f434c92361bc5aabb4ce980 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 13 Nov 2022 00:09:21 +0200 Subject: write init more sensibly + Both easier to look at and now the userspace doesn't play as big of a role in the 'benchmarking' with optimizations turned on. --- lib/fdt_dbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/fdt_dbg.c b/lib/fdt_dbg.c index 5fd4219..d3c4e26 100644 --- a/lib/fdt_dbg.c +++ b/lib/fdt_dbg.c @@ -138,8 +138,8 @@ void __dbg_fdt(const void *fdt, int node_offset, int depth) int property = 0; fdt_for_each_property_offset(property, fdt, node) { - int len; - const char *name; + int len = 0; + const char *name = 0; const void *data = fdt_getprop_by_offset(fdt, property, &name, &len); -- cgit v1.3