Kaynağa Gözat

lxc: fix build on mpc85xx

Initialize ret to 0 so compiler no longer complains about
monitor.c: In function 'lxc_monitor_open':
monitor.c:212:5: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle 9 yıl önce
ebeveyn
işleme
c8a6990932

+ 11
- 0
utils/lxc/patches/016-uninitialized-ret-in-monitor.patch Dosyayı Görüntüle

@@ -0,0 +1,11 @@
1
+--- a/src/lxc/monitor.c
2
++++ b/src/lxc/monitor.c
3
+@@ -181,7 +181,7 @@ int lxc_monitor_sock_name(const char *lx
4
+ int lxc_monitor_open(const char *lxcpath)
5
+ {
6
+ 	struct sockaddr_un addr;
7
+-	int fd,ret;
8
++	int fd,ret = 0;
9
+ 	int retry,backoff_ms[] = {10, 50, 100};
10
+ 	size_t len;
11
+