diff options
author | Matt Wilson <msw@redhat.com> | 1999-06-23 16:17:53 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-06-23 16:17:53 +0000 |
commit | 29276ce2a2fac140fd1701e6242da519e4ccd44b (patch) | |
tree | 65e2658122edc544b0925cff1145f07c941ac04c /isys | |
parent | 399eb45087443ac81f9896ec113034f9f0b73d44 (diff) | |
download | anaconda-29276ce2a2fac140fd1701e6242da519e4ccd44b.tar.gz anaconda-29276ce2a2fac140fd1701e6242da519e4ccd44b.tar.xz anaconda-29276ce2a2fac140fd1701e6242da519e4ccd44b.zip |
missed a NULL args check
Diffstat (limited to 'isys')
-rw-r--r-- | isys/otherinsmod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/isys/otherinsmod.c b/isys/otherinsmod.c index 8c9cd725a..f052ed16c 100644 --- a/isys/otherinsmod.c +++ b/isys/otherinsmod.c @@ -112,7 +112,8 @@ int insmod(char * modName, char ** args) { argv = malloc(sizeof(*argv) * (argc + 1)); argv[0] = "/bin/insmod"; argv[1] = modName; - memcpy(argv + 2, args, argc - 1); + if (args) + memcpy(argv + 2, args, argc - 1); if ((child = fork()) == 0) { exit(ourInsmodCommand(argc, argv)); |