From: Takashi Iwai Date: Fri, 27 Jan 2006 11:54:06 +0000 (+0000) Subject: Remove bad assert X-Git-Tag: v1.0.11rc3~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b23f367ee38cda77e933fce7d836a6990bd08b73;p=alsa-lib.git Remove bad assert From: Pierre Ossman 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. --- diff --git a/src/conf.c b/src/conf.c index 546b5893..78cc4cb3 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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)