Skip to content

Commit

Permalink
parse: fix uninitialized value
Browse files Browse the repository at this point in the history
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
  • Loading branch information
2xsec authored and Christian Brauner committed Oct 19, 2018
1 parent d2757b4 commit 2caf13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/parse.c
Expand Up @@ -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;
Expand Down

0 comments on commit 2caf13c

Please sign in to comment.