]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Remove bad assert
authorTakashi Iwai <tiwai@suse.de>
Fri, 27 Jan 2006 11:54:06 +0000 (11:54 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Jan 2006 11:54:06 +0000 (11:54 +0000)
From: Pierre Ossman <drzeus-list@drzeus.cx>

Freeing the global config update structure when it had been created
without any configs present caused an assertion to trigger. Since this
is a valid scenario and the assertion didn't really protect against
anything, it should simply be removed. Attached patch does exactly that.

src/conf.c

index 546b5893497cf0e340dd12d1856f5e8e434ac718..78cc4cb363208dd1e0eb0e9c614a47b2a12120fc 100644 (file)
@@ -3105,7 +3105,6 @@ int snd_config_update_free(snd_config_update_t *update)
        unsigned int k;
 
        assert(update);
-       assert(update->count > 0 && update->finfo);
        for (k = 0; k < update->count; k++)
                free(update->finfo[k].name);
        if (update->finfo)