From c02bbaa2467c19180d360d6914a13d17e323185c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 12 Sep 2007 11:23:54 +0200 Subject: [PATCH] vss_init(): Use FOR_EACH_AUDIO_FORMAT() instead of open coding the loop. Fixes a segfault on startup in case not all three audio formats are supported. --- vss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vss.c b/vss.c index 3ef850c7..a6d3dfc0 100644 --- a/vss.c +++ b/vss.c @@ -173,7 +173,7 @@ void vss_init(void) PARA_DEBUG_LOG("supported audio formats: %s\n", SUPPORTED_AUDIO_FORMATS); - for (i = 0; afl[i].name; i++) { + FOR_EACH_AUDIO_FORMAT(i) { PARA_NOTICE_LOG("initializing %s handler\n", afl[i].name); afl[i].init(&afl[i]); -- 2.39.5