All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove bogus assert
@ 2006-01-25 19:29 Pierre Ossman
  2006-01-27 11:54 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Ossman @ 2006-01-25 19:29 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

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.

Rgds
Pierre


[-- Attachment #2: alsa-badassert.patch --]
[-- Type: text/x-patch, Size: 336 bytes --]

--- alsa-lib-1.0.10.orig/src/conf.c	2005-10-12 18:08:53.000000000 +0200
+++ alsa-lib-1.0.10/src/conf.c	2006-01-25 20:18:30.000000000 +0100
@@ -3106,7 +3106,6 @@
 	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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-27 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-25 19:29 [PATCH] Remove bogus assert Pierre Ossman
2006-01-27 11:54 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.