Browse code

Fix for cli_scanegg; changing memset to use sizeof() the correct struct.

Micah Snyder authored on 2019/08/25 09:48:50
Showing 1 changed files
... ...
@@ -740,7 +740,7 @@ static cl_error_t cli_scanegg(cli_ctx *ctx, size_t sfx_offset)
740 740
         status = CL_CLEAN;
741 741
 
742 742
         /* Zero out the metadata struct before we read the header */
743
-        memset(&metadata, 0, sizeof(unrar_metadata_t));
743
+        memset(&metadata, 0, sizeof(cl_egg_metadata));
744 744
 
745 745
         /*
746 746
          * Get the header information for the next file in the archive.