shithub: sox

Download patch

ref: 6830d4ab3cefe8592fc784b18551c88b21a8ccfb
parent: bf27592b54f18a7c4d6beb0f3d2f195087138434
author: Mans Rullgard <mans@mansr.com>
date: Fri Aug 7 18:24:02 EDT 2020

wav: drop redundant zero initialisations

The private data is initialised to zero allocation.
No need to do it again.

--- a/src/wav.c
+++ b/src/wav.c
@@ -648,10 +648,6 @@
         lsx_report("User options overriding rate read in .wav header");
 
 
-    wav->lsx_ms_adpcm_i_coefs = NULL;
-    wav->packet = NULL;
-    wav->samples = NULL;
-
     /* non-PCM formats except alaw and mulaw formats have extended fmt chunk.
      * Check for those cases.
      */