diff options
author | Matt Wilson <msw@redhat.com> | 1999-06-23 16:15:37 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-06-23 16:15:37 +0000 |
commit | 399eb45087443ac81f9896ec113034f9f0b73d44 (patch) | |
tree | 5957e1aeb50d4ee88f60bc3528338036e2c055a6 /isys | |
parent | 2111a5f20f157a910fec9ff57f22b8d89349c809 (diff) | |
download | anaconda-399eb45087443ac81f9896ec113034f9f0b73d44.tar.gz anaconda-399eb45087443ac81f9896ec113034f9f0b73d44.tar.xz anaconda-399eb45087443ac81f9896ec113034f9f0b73d44.zip |
added a check for NULL argv
Diffstat (limited to 'isys')
-rw-r--r-- | isys/otherinsmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/otherinsmod.c b/isys/otherinsmod.c index 5cbbfae3e..8c9cd725a 100644 --- a/isys/otherinsmod.c +++ b/isys/otherinsmod.c @@ -107,7 +107,7 @@ int insmod(char * modName, char ** args) { int status; argc = 2; - for (argv = args; *argv; argv++, argc++); + for (argv = args; argv && *argv; argv++, argc++); argv = malloc(sizeof(*argv) * (argc + 1)); argv[0] = "/bin/insmod"; |