Fix uninitialized variable

Fixed uninitialized variable.  Fix also for gcc-2.9x.
This commit is contained in:
Takashi Iwai 2005-05-24 16:53:10 +00:00
parent 2e27f490d5
commit 7cd01af9c1

View file

@ -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;