From 723b142cfd85d379501397d0f6500d7263bad34e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 14 Jan 2010 23:48:24 +0100 Subject: [PATCH] audiod: Add a paranoia check to close_writers(). --- audiod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audiod.c b/audiod.c index 2bda0f69..4b2c65f7 100644 --- a/audiod.c +++ b/audiod.c @@ -357,6 +357,7 @@ static void close_writers(struct slot_info *s) if (s->format < 0) return; + assert(s->wns); a = afi + s->format; if (a->num_writers == 0) writer_cleanup(s->wns); -- 2.39.5