Unverified Commit 2caf13c3 by 2xsec Committed by Christian Brauner

parse: fix uninitialized value

Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent d2757b4e
...@@ -72,7 +72,7 @@ int lxc_strmunmap(void *addr, size_t length) ...@@ -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 lxc_file_for_each_line_mmap(const char *file, lxc_file_cb callback, void *data)
{ {
int saved_errno; int saved_errno;
ssize_t ret, bytes_sent; ssize_t ret = -1, bytes_sent;
char *line; char *line;
int fd = -1, memfd = -1; int fd = -1, memfd = -1;
char *buf = NULL; char *buf = NULL;
......
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