Commit 9d324b5f authored by John Baldwin's avatar John Baldwin
Browse files

mount: Don't pass a NULL format string to xo_err().

This fixes a -Wformat error from GCC 9.

Fixes:		e725ee7e mount: add libxo(3) support
parent 0def501d
......@@ -192,7 +192,7 @@ specified_ro(const char *arg)
optbuf = strdup(arg);
if (optbuf == NULL)
xo_err(1, NULL);
xo_err(1, "strdup failed");
for (opt = optbuf; (opt = strtok(opt, ",")) != NULL; opt = NULL) {
if (strcmp(opt, "ro") == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment