modutils: dont pass NULL options to init_module()
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 29 Mar 2009 17:25:14 +0000 (17:25 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 29 Mar 2009 17:25:14 +0000 (17:25 -0000)
modutils/modutils.c

index 405785f..ef4f619 100644 (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);
        }