diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-29 17:25:14 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-29 17:25:14 +0000 |
commit | 0d907eab6cd424963bf8b788710e7a68d50d0511 (patch) | |
tree | c2597aaec54c6488382ece2b558c5e084166c523 | |
parent | a83dbd4146951fd98b62f8e9b8d04a14a88df311 (diff) | |
download | busybox-w32-0d907eab6cd424963bf8b788710e7a68d50d0511.tar.gz busybox-w32-0d907eab6cd424963bf8b788710e7a68d50d0511.tar.bz2 busybox-w32-0d907eab6cd424963bf8b788710e7a68d50d0511.zip |
modutils: dont pass NULL options to init_module()
-rw-r--r-- | modutils/modutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
127 | image = xmalloc_open_zipped_read_close(filename, &len); | 127 | image = xmalloc_open_zipped_read_close(filename, &len); |
128 | if (image) { | 128 | if (image) { |
129 | rc = 0; | 129 | rc = 0; |
130 | if (init_module(image, len, options) != 0) | 130 | if (init_module(image, len, options ? options : "") != 0) |
131 | rc = errno; | 131 | rc = errno; |
132 | free(image); | 132 | free(image); |
133 | } | 133 | } |