summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-04-28 20:48:17 +0300
committerLennart Poettering <lennart@poettering.net>2016-04-28 19:48:17 +0200
commit5aa3eba50c52722e57cf444432ef80acf3298a85 (patch)
tree767aec3a28bedd8537dbc886524e28ce353c8d76 /src
parent80b2ab4bc00fe18ee4e9f1325bfc7cdd055c6466 (diff)
nspawn: initialize the veth_name (#3141)
Fixes: $ systemd-nspawn -h ... Failed to remove veth interface ����: Operation not permitted This is a follow-up for d2773e59de3dd970d861
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 5d39c9d7c3..8c90aa8015 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3339,7 +3339,7 @@ int main(int argc, char *argv[]) {
_cleanup_close_ int master = -1, image_fd = -1;
_cleanup_fdset_free_ FDSet *fds = NULL;
int r, n_fd_passed, loop_nr = -1;
- char veth_name[IFNAMSIZ];
+ char veth_name[IFNAMSIZ] = "";
bool secondary = false, remove_subvol = false;
sigset_t mask_chld;
pid_t pid = 0;