Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] [PATCH] dxr3 - fix variable used before initialisation



I thought I would try getting vdr to run with valgrind and it spotted that the "m_audioMode" of the dxr3abstractiondevice was being used without being initialised. This patch sets the variable just before it gets used by the code which checks the present audio mode.

Jon

--- dxr3abstractiondevice.c	2003-06-07 17:45:58.000000000 +0100
+++ dxr3abstractiondevice.c	2003-06-07 20:14:32.000000000 +0100
@@ -93,6 +93,7 @@
     bExternalReleased = false;
     m_volume = 255;
 
+    m_audioMode = EM8300_AUDIOMODE_DIGITALAC3;
     SetAudioAnalog();
     SetChannelCount(1);
     Resuscitation();

Home | Main Index | Thread Index