From b4ff610b86a769f92ad15069a93e2d046a48043c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 5 Jul 2010 12:00:58 +0100 Subject: [PATCH] module_dir_load(): Don't crash with "" plugin list. Patch by Stephan Bosch. --HG-- branch : HEAD --- src/lib/module-dir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/module-dir.c b/src/lib/module-dir.c index 450508a133..b55f8909d9 100644 --- a/src/lib/module-dir.c +++ b/src/lib/module-dir.c @@ -252,6 +252,9 @@ static void module_names_fix(const char **module_names) { unsigned int i, j; + if (module_names[0] == NULL) + return; + /* allow giving the module names also in non-base form. convert them in here. */ for (i = 0; module_names[i] != NULL; i++) -- 2.47.3