summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-10-06 17:44:51 +0200
committerLennart Poettering <lennart@poettering.net>2016-10-06 19:04:10 +0200
commit7429b2eb8308f3a2bf8c28d555fcdf5e961e65f0 (patch)
treeeebcba7b9b273e20998371c2d84fcb41dc65a6f5 /src/nspawn/nspawn.c
parent2d6fce8d7c397fe915230b728cb92aa749245e43 (diff)
tree-wide: drop some misleading compiler warnings
gcc at some optimization levels thinks thes variables were used without initialization. it's wrong, but let's make the message go anyway.
Diffstat (limited to 'src/nspawn/nspawn.c')
-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 9a8274c8de..a08377b3a3 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3830,7 +3830,7 @@ int main(int argc, char *argv[]) {
_cleanup_(sd_event_unrefp) sd_event *event = NULL;
_cleanup_(pty_forward_freep) PTYForward *forward = NULL;
_cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL;
- ContainerStatus container_status;
+ ContainerStatus container_status = 0;
char last_char = 0;
int ifi = 0;
ssize_t l;