commit | 0d907eab6cd424963bf8b788710e7a68d50d0511 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sun Mar 29 17:25:14 2009 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sun Mar 29 17:25:14 2009 +0000 |
tree | c2597aaec54c6488382ece2b558c5e084166c523 | |
parent | a83dbd4146951fd98b62f8e9b8d04a14a88df311 [diff] [blame] |
modutils: dont pass NULL options to init_module()
diff --git a/modutils/modutils.c b/modutils/modutils.c index 405785f..ef4f619 100644 --- a/modutils/modutils.c +++ b/modutils/modutils.c
@@ -127,7 +127,7 @@ 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); }