]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(dracut-install): initialize the fts pointer
authorPavel Valena <pvalena@redhat.com>
Thu, 13 Feb 2025 21:18:06 +0000 (22:18 +0100)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Thu, 30 Oct 2025 19:40:14 +0000 (15:40 -0400)
src/install/dracut-install.c

index b8940f6620f3550f6d47657c60c80a7e3f04002a..b1b2391b808d712aab3f32233145c34826f23085 100644 (file)
@@ -2262,7 +2262,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);