From c3ce6e480ae42f2596ecdab68d78eb7a03339967 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 12 Feb 2022 12:29:00 +0100 Subject: Silence warning Since gcc doesn't seem to discover that underlying is not used uninitialized. * utils/mount.c (do_mount): Initialize underlying to MACH_PORT_NULL. --- utils/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/mount.c') diff --git a/utils/mount.c b/utils/mount.c index 5fa35bc4..483b71fc 100644 --- a/utils/mount.c +++ b/utils/mount.c @@ -404,7 +404,7 @@ do_mount (struct fs *fs, int remount) if (fake) { /* Fake the translator startup. */ - mach_port_t underlying; + mach_port_t underlying = MACH_PORT_NULL; mach_msg_type_name_t underlying_type; err = open_node (O_READ, &underlying, &underlying_type, 0, NULL); if (err) -- cgit v1.2.3