Commit f58ad87a by Daniel Golle

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/1356Signed-off-by: 's avatarDaniel Golle <daniel@makrotopia.org>
parent d9b32b09
...@@ -182,7 +182,7 @@ int lxc_monitor_sock_name(const char *lxcpath, struct sockaddr_un *addr) { ...@@ -182,7 +182,7 @@ int lxc_monitor_sock_name(const char *lxcpath, struct sockaddr_un *addr) {
int lxc_monitor_open(const char *lxcpath) int lxc_monitor_open(const char *lxcpath)
{ {
struct sockaddr_un addr; struct sockaddr_un addr;
int fd,ret; int fd,ret = 0;
int retry,backoff_ms[] = {10, 50, 100}; int retry,backoff_ms[] = {10, 50, 100};
size_t len; size_t len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment