Fix FS#12743 - 'Data Abort' on USB connection

Because a pointer was uninitialized the move_callback() corrupted memory
by derefencing it and moving stuff to uninitialized value.

This reverts part of 8bbd4d9, where the offending line was removed. I can
only guess it was removed by accident.

Change-Id: I83cee5b396cf3cc99b000e5284fac72fb8ca8db2
This commit is contained in:
Thomas Martitz 2012-09-11 06:39:53 +02:00
parent a14791951b
commit b985d5cee8

View file

@ -335,6 +335,7 @@ static void voice_data_init(struct voice_thread_data *td)
mixer_channel_set_amplitude(PCM_MIXER_CHAN_VOICE, MIX_AMP_UNITY); mixer_channel_set_amplitude(PCM_MIXER_CHAN_VOICE, MIX_AMP_UNITY);
voice_buf->td = td; voice_buf->td = td;
td->dst = NULL;
} }
/* Voice thread message processing */ /* Voice thread message processing */