diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2012-09-11 06:39:53 +0200 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2012-09-11 06:39:53 +0200 |
| commit | b985d5cee8c8a1378cf36826e7bd4fe7e21fc5c5 (patch) | |
| tree | 337dd905c6b224a3c558cb44355ff165e028ed37 | |
| parent | a14791951bdd4746d6d4bdce966c55e8fcaf48b0 (diff) | |
| download | rockbox-b985d5cee8c8a1378cf36826e7bd4fe7e21fc5c5.zip rockbox-b985d5cee8c8a1378cf36826e7bd4fe7e21fc5c5.tar.gz rockbox-b985d5cee8c8a1378cf36826e7bd4fe7e21fc5c5.tar.bz2 rockbox-b985d5cee8c8a1378cf36826e7bd4fe7e21fc5c5.tar.xz | |
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
| -rw-r--r-- | apps/voice_thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 87e4eee..e8c7fcc 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c @@ -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); voice_buf->td = td; + td->dst = NULL; } /* Voice thread message processing */ |