From 411ec4713bc70f051e87c8f095de07cade417b09 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Dec 2014 02:34:12 +0100 Subject: udev-builtin-btrfs: properly initialize ioctl struct to zeroes Signed-off-by: Anthony G. Basile --- src/udev/udev-builtin-btrfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/udev') diff --git a/src/udev/udev-builtin-btrfs.c b/src/udev/udev-builtin-btrfs.c index 2e2112fd92..74b220928e 100644 --- a/src/udev/udev-builtin-btrfs.c +++ b/src/udev/udev-builtin-btrfs.c @@ -24,6 +24,7 @@ #include #include #include + #ifdef HAVE_LINUX_BTRFS_H #include #endif @@ -32,7 +33,7 @@ #include "udev.h" static int builtin_btrfs(struct udev_device *dev, int argc, char *argv[], bool test) { - struct btrfs_ioctl_vol_args args; + struct btrfs_ioctl_vol_args args = {}; _cleanup_close_ int fd = -1; int err; -- cgit v1.2.3-54-g00ecf