mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Fix uninitialized variable
Fixed uninitialized variable. Fix also for gcc-2.9x.
This commit is contained in:
parent
2e27f490d5
commit
7cd01af9c1
1 changed files with 2 additions and 3 deletions
|
|
@ -554,13 +554,12 @@ int ld10k1_fnc_patch_add(int data_conn, int op, int size)
|
|||
int where;
|
||||
|
||||
ld10k1_dsp_patch_t new_patch_info;
|
||||
/* allocate new patch */
|
||||
ld10k1_patch_t *new_patch = NULL;
|
||||
|
||||
if ((err = ld10k1_fnc_receive_patch_info(data_conn, &new_patch_info, &where)) < 0)
|
||||
goto error;
|
||||
|
||||
/* alocate new patch */
|
||||
ld10k1_patch_t *new_patch = NULL;
|
||||
|
||||
if (!(new_patch = ld10k1_dsp_mgr_patch_new())) {
|
||||
err = LD10K1_ERR_NO_MEM;
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue