diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-12 02:34:12 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-12 13:35:32 +0100 |
commit | a2e22d07c65aa7c1174a381589ad76841a04d100 (patch) | |
tree | 50049748c8a04b8ed377e58ac96d4a91e035afac /src/udev | |
parent | 257224b0cdbb5ae1ac463a6a6645e033882b967e (diff) |
udev-builtin-btrfs: properly initialize ioctl struct to zeroes
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udev-builtin-btrfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <fcntl.h> #include <errno.h> #include <sys/ioctl.h> + #ifdef HAVE_LINUX_BTRFS_H #include <linux/btrfs.h> #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; |