From 0d907eab6cd424963bf8b788710e7a68d50d0511 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 29 Mar 2009 17:25:14 +0000 Subject: [PATCH] modutils: dont pass NULL options to init_module() --- modutils/modutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modutils/modutils.c b/modutils/modutils.c index 405785ff5..ef4f6191b 100644 --- a/modutils/modutils.c +++ b/modutils/modutils.c @@ -127,7 +127,7 @@ int FAST_FUNC bb_init_module(const char *filename, const char *options) image = xmalloc_open_zipped_read_close(filename, &len); if (image) { rc = 0; - if (init_module(image, len, options) != 0) + if (init_module(image, len, options ? options : "") != 0) rc = errno; free(image); } -- 2.25.1