Commit 1f5621b1 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Merge dependent conditions.

parent 48d1077c
......@@ -737,8 +737,7 @@ void grbCopyRecord(stream_t * streamptr2, stream_t * streamptr1)
long unzipsize;
int izip = gribGetZip((long)recsize, gribbuffer, &unzipsize);
if ( izip == 0 )
if ( streamptr2->comptype == COMPRESS_SZIP )
if ( izip == 0 && streamptr2->comptype == COMPRESS_SZIP )
nbytes = grbSzip(filetype, gribbuffer, nbytes);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment