From 32c3488b91b069ac55bfb90dd2f4524f43febb09 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sat, 24 Apr 2021 11:35:54 +0300 Subject: [PATCH] Fix a crash in the FreeBSD part of loolmount due to uninitialized variables. Signed-off-by: Gleb Popov <6yearold@gmail.com> Change-Id: I734a53d7e7e735549ebe8a78ad478614967c4159 --- tools/mount.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mount.cpp b/tools/mount.cpp index 6c2c45034..1674a80a6 100644 --- a/tools/mount.cpp +++ b/tools/mount.cpp @@ -67,8 +67,8 @@ int mount_wrapper(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *data) { - struct iovec *iov; - int iovlen; + struct iovec *iov = NULL; + int iovlen = 0; int freebsd_flags = 0; (void)data;