From b23f367ee38cda77e933fce7d836a6990bd08b73 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 27 Jan 2006 11:54:06 +0000 Subject: [PATCH] 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. --- src/conf.c | 1 - 1 file changed, 1 deletion(-) 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) -- 2.11.0