summaryrefslogtreecommitdiff
path: root/src/udev/udev-builtin-btrfs.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-12 02:34:12 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-12-17 14:32:39 -0500
commit411ec4713bc70f051e87c8f095de07cade417b09 (patch)
treea4033cd9730d0b8522da37ddf2e3f8a0f6d013b0 /src/udev/udev-builtin-btrfs.c
parentfdb139feedcc7f2930f561a7e643d144e13f9d5e (diff)
udev-builtin-btrfs: properly initialize ioctl struct to zeroes
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-builtin-btrfs.c')
-rw-r--r--src/udev/udev-builtin-btrfs.c3
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;