Skip to content
Snippets Groups Projects
Commit 4c6f9528 authored by Alan Modra's avatar Alan Modra
Browse files

gas/compress-debug.c init all of strm

	* compress-debug.c (compress_init): Clear all of strm.
parent 712d71a2
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <zlib.h>
#if HAVE_ZSTD
#include <zstd.h>
......@@ -39,10 +40,7 @@ compress_init (bool use_zstd)
}
static struct z_stream_s strm;
strm.zalloc = NULL;
strm.zfree = NULL;
strm.opaque = NULL;
memset (&strm, 0, sizeof (strm));
deflateInit (&strm, Z_DEFAULT_COMPRESSION);
return &strm;
}
......
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