From: Daniel Golle Date: Tue, 9 Jun 2015 10:58:12 +0000 (+0200) Subject: fix build on mpc85xx X-Git-Tag: lxc-1.1.3~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d55fa2509f190b773f2c9f4f2b66bd2482ff25ec;p=thirdparty%2Flxc.git 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] https://github.com/openwrt/packages/issues/1356 Signed-off-by: Daniel Golle --- diff --git a/src/lxc/monitor.c b/src/lxc/monitor.c index 0e56f75ee..374158684 100644 --- a/src/lxc/monitor.c +++ b/src/lxc/monitor.c @@ -182,7 +182,7 @@ int lxc_monitor_sock_name(const char *lxcpath, struct sockaddr_un *addr) { int lxc_monitor_open(const char *lxcpath) { struct sockaddr_un addr; - int fd,ret; + int fd,ret = 0; int retry,backoff_ms[] = {10, 50, 100}; size_t len;