mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Remove bad assert
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.
This commit is contained in:
parent
d9cfe1e9ff
commit
b23f367ee3
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue