modutils: dont pass NULL options to init_module()

This commit is contained in:
Denis Vlasenko committed 2009-03-29 17:25:14 +00:00
1 parent a83dbd4146
commit 0d907eab6c
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}