]> git.alsa-project.org Git - alsa-tools.git/commitdiff
Fix uninitialized variable
authorTakashi Iwai <tiwai@suse.de>
Tue, 24 May 2005 16:53:10 +0000 (16:53 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 May 2005 16:53:10 +0000 (16:53 +0000)
Fixed uninitialized variable.  Fix also for gcc-2.9x.

ld10k1/src/ld10k1_fnc1.c

index 651fcffc62cbac63b0bec5b4fae8761e63af3269..ff8010ae4d6b0881fcbb6074d07dfcf3e6fc77ae 100644 (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;