dracut/0008-fix-dracut-install-initize-fts-pointer.patch
Pavel Valena e68b4f0939 Upgrade to dracut 107
From-source-git-commit: e0d1d0707c4694219b6d44d417c4c4e6a0fdc94c

Resolves: RHEL-97473
2025-07-21 15:52:08 +02:00

27 lines
880 B
Diff

From 0466276d2dabc86dde6ac2ce4f5b6387292bc377 Mon Sep 17 00:00:00 2001
From: Pavel Valena <pvalena@redhat.com>
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