From a7563dc6a1f8b46e13c6cf1a7fbeeb611310b29a Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 22 Oct 2019 10:43:11 +0200 Subject: [PATCH] gcc: older version can't see udev is always set --- lib/device/dev-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index a15e239ec..3dcfc101c 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -1087,7 +1087,7 @@ out: static void _insert_dirs(struct dm_list *dirs) { struct dir_list *dl; - struct udev *udev; + struct udev *udev = NULL; int with_udev; with_udev = obtain_device_list_from_udev() &&