The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2702
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Hello, uninitialized value is fixed. Thanks. Signed-off-by: 2xsec <dh48.je...@samsung.com>
From 9c3f0f02f85d7f0dac98a64067e1bf2848b6ae2c Mon Sep 17 00:00:00 2001 From: 2xsec <dh48.je...@samsung.com> Date: Fri, 19 Oct 2018 11:51:51 +0900 Subject: [PATCH] parse: fix uninitialized value Signed-off-by: 2xsec <dh48.je...@samsung.com> --- src/lxc/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/parse.c b/src/lxc/parse.c index ab9aab461..1c1ddaa2c 100644 --- a/src/lxc/parse.c +++ b/src/lxc/parse.c @@ -72,7 +72,7 @@ int lxc_strmunmap(void *addr, size_t length) int lxc_file_for_each_line_mmap(const char *file, lxc_file_cb callback, void *data) { int saved_errno; - ssize_t ret, bytes_sent; + ssize_t ret = -1, bytes_sent; char *line; int fd = -1, memfd = -1; char *buf = NULL;
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel