chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udev-builtin-btrfs: properly initialize ioctl struct to zeroes
[elogind.git]
/
src
/
udev
/
udev-builtin-btrfs.c
diff --git
a/src/udev/udev-builtin-btrfs.c
b/src/udev/udev-builtin-btrfs.c
index 2e2112fd92344f67e907d88f8ea816f7a9ca7d07..74b220928ecd7dba17df0426f238ea3ec8bbd803 100644
(file)
--- 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>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
+
#ifdef HAVE_LINUX_BTRFS_H
#include <linux/btrfs.h>
#endif
#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) {
#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;
_cleanup_close_ int fd = -1;
int err;