summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-12 12:29:00 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-12 12:29:00 +0100
commitc3ce6e480ae42f2596ecdab68d78eb7a03339967 (patch)
tree7433f7d60b9232909e08c6c7d5bcc624ead9c5b4
parent6dd6bd736710d0dfb285f225c51e3f90436126b9 (diff)
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.
-rw-r--r--utils/mount.c2
1 files changed, 1 insertions, 1 deletions
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)