Virus Browser: Fixed gzFile usage

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/24/head
Mavridis Philippe 4 years ago
parent 8ce8d981f0
commit 522bc92a7e
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -430,11 +430,11 @@ int cli_untgz(int fd, const char *destdir)
int nbytes, nread, nwritten, in_block = 0;
unsigned int size;
FILE *outfile = NULL;
gzFile *infile;
gzFile infile;
printf("in cli_untgz()\n");
if((infile = (gzFile*) gzdopen(fd, "rb")) == NULL) {
if((infile = gzdopen(fd, "rb")) == NULL) {
printf("Can't gzdopen() descriptor %d\n", fd);
return -1;
}

Loading…
Cancel
Save