From 0466276d2dabc86dde6ac2ce4f5b6387292bc377 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Thu, 13 Feb 2025 22:18:06 +0100 Subject: [PATCH 08/16] fix(dracut-install): initize fts pointer Related: RHEL-65204 --- src/install/dracut-install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/dracut-install.c b/src/install/dracut-install.c index bacbe86e..bd72f0b9 100644 --- a/src/install/dracut-install.c +++ b/src/install/dracut-install.c @@ -1703,7 +1703,7 @@ static void find_suppliers_for_sys_node(Hashmap *suppliers, const char *node_pat static void find_suppliers(struct kmod_ctx *ctx) { - _cleanup_fts_close_ FTS *fts; + _cleanup_fts_close_ FTS *fts = NULL; char *paths[] = { "/sys/devices/platform", NULL }; fts = fts_open(paths, FTS_NOSTAT | FTS_PHYSICAL, NULL); -- 2.50.1