Merge pull request #2702 from 2xsec/asan1

parse: fix uninitialized value
This commit is contained in:
Christian Brauner 2018-10-19 07:02:41 +02:00 committed by GitHub
commit 9de79b17c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;