Skip to content
Snippets Groups Projects
Commit cf8ae27b authored by Giuseppe Scrivano's avatar Giuseppe Scrivano
Browse files

glnx-fdio: always initialize buf


It can be used without initialization if condition causing a "goto
error" fails before buf is initialized.

Signed-off-by: default avatarGiuseppe Scrivano <gscrivan@redhat.com>
parent 013aa4fe
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ glnx_file_get_contents_utf8_at (int dfd,
{
gboolean success = FALSE;
glnx_fd_close int fd = -1;
char *buf;
char *buf = NULL;
gsize len;
dfd = glnx_dirfd_canonicalize (dfd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment