diff options
| author | Daniel Golle <daniel@makrotopia.org> | 2015-06-09 03:05:53 +0200 |
|---|---|---|
| committer | Daniel Golle <daniel@makrotopia.org> | 2015-06-09 12:03:20 +0200 |
| commit | c8a6990932d5cfe9c18df48cfcd818fd85b88e29 (patch) | |
| tree | ad036bebb53ad48fd6f66c2556371fd1723597b7 /utils/lxc | |
| parent | 32673f9b0bfa1fd6905d4bfb3b68e49346b95c7c (diff) | |
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>
Diffstat (limited to 'utils/lxc')
| -rw-r--r-- | utils/lxc/patches/016-uninitialized-ret-in-monitor.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/lxc/patches/016-uninitialized-ret-in-monitor.patch b/utils/lxc/patches/016-uninitialized-ret-in-monitor.patch new file mode 100644 index 000000000..7eca2eaeb --- /dev/null +++ b/utils/lxc/patches/016-uninitialized-ret-in-monitor.patch @@ -0,0 +1,11 @@ +--- a/src/lxc/monitor.c ++++ b/src/lxc/monitor.c +@@ -181,7 +181,7 @@ int lxc_monitor_sock_name(const char *lx + 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; + |
