1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

udev-builtin-btrfs: properly initialize ioctl struct to zeroes

This commit is contained in:
Lennart Poettering 2014-12-12 02:34:12 +01:00
parent 257224b0cd
commit a2e22d07c6

View File

@ -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;