If opts is NULL just pass "" as expected by the kernel

This commit is contained in:
sin 2013-08-09 09:52:17 +01:00
parent 03a234e7f9
commit 691c4ae503

View File

@ -61,7 +61,7 @@ main(int argc, char *argv[])
} }
} }
if (syscall(__NR_init_module, buf, blen, opts) < 0) if (syscall(__NR_init_module, buf, blen, !opts ? "" : opts) < 0)
eprintf("init_module:"); eprintf("init_module:");
free(opts); free(opts);