modutils: dont pass NULL options to init_module()

This commit is contained in:
Denis Vlasenko 2009-03-29 17:25:14 +00:00
parent a83dbd4146
commit 0d907eab6c

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); image = xmalloc_open_zipped_read_close(filename, &len);
if (image) { if (image) {
rc = 0; rc = 0;
if (init_module(image, len, options) != 0) if (init_module(image, len, options ? options : "") != 0)
rc = errno; rc = errno;
free(image); free(image);
} }