From cbe7244670a2f6b2cd06ed11b46f3511b1415bdb Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Sun, 28 Aug 2022 08:49:18 +0800 Subject: [PATCH] Windows: set default value Parallel e25bcf906a425892a834f08157683e709a307a14 Fix directory detection in dkms.mkconf Signed-off-by: Andrew Innes --- lib/libzutil/os/windows/zutil_device_path_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libzutil/os/windows/zutil_device_path_os.c b/lib/libzutil/os/windows/zutil_device_path_os.c index e82526954773..445fdc434a88 100644 --- a/lib/libzutil/os/windows/zutil_device_path_os.c +++ b/lib/libzutil/os/windows/zutil_device_path_os.c @@ -145,7 +145,7 @@ zfs_get_underlying_path(const char *dev_name) boolean_t zfs_dev_is_whole_disk(const char *dev_name) { - struct dk_gpt *label; + struct dk_gpt *label = NULL; int fd; if ((fd = open(dev_name, O_RDONLY | O_DIRECT)) < 0)