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);
                                            ^
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2013-11-01 20:54:29 +01:00
parent 76fdc9669a
commit f69157a66f
+1 -1
View File
@@ -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;