diff --git a/src/dbviewer.cpp b/src/dbviewer.cpp index 4e128c6..ea65463 100644 --- a/src/dbviewer.cpp +++ b/src/dbviewer.cpp @@ -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; }