1
0
mirror of git://git.suckless.org/ubase synced 2025-01-08 23:39:44 +00:00

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:");
free(opts);