chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
257224b
)
udev-builtin-btrfs: properly initialize ioctl struct to zeroes
author
Lennart Poettering
<lennart@poettering.net>
Fri, 12 Dec 2014 01:34:12 +0000
(
02:34
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 12 Dec 2014 12:35:32 +0000
(13:35 +0100)
src/udev/udev-builtin-btrfs.c
patch
|
blob
|
history
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>
+
#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;