diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-11-01 20:54:29 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-11-01 20:54:29 +0100 |
commit | f69157a66ffe413b4cf8bd79057487fc8921e78b (patch) | |
tree | d7c121e0d50073f0a70a6831f16906ad5bdb1f77 /src | |
parent | 76fdc9669a639db042d0e8bf57f525f008495535 (diff) |
machinectl: fix warning when compiling with -Og
src/machine/machinectl.c: In function ‘openpt_in_namespace’:
src/machine/machinectl.c:623:44: warning: ‘master’ may be used uninitialized in this function [-Wmaybe-uninitialized]
close_nointr_nofail(master);
^
Diffstat (limited to 'src')
-rw-r--r-- | src/machine/machinectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 7a252c34aa..5a6bb056b1 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -528,7 +528,7 @@ static int openpt_in_namespace(pid_t pid, int flags) { uint8_t buf[CMSG_SPACE(sizeof(int))]; } control; struct cmsghdr *cmsg; - int master, r; + int master = -1, r; pid_t child; siginfo_t si; |