aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 00:09:21 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-11-13 00:09:21 +0200
commit90ab6923775b2e011f434c92361bc5aabb4ce980 (patch)
tree6b69fee3db9fdc04c7446f932a4b7db832843e25 /lib
parent845cf97e1faee613e3e73900f5f93bfcedc831f1 (diff)
downloadkmi-90ab6923775b2e011f434c92361bc5aabb4ce980.tar.gz
kmi-90ab6923775b2e011f434c92361bc5aabb4ce980.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/fdt_dbg.c4
1 files changed, 2 insertions, 2 deletions
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);