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

This fixes a -Wformat error from GCC 9.

Fixes:		e725ee7eb6 mount: add libxo(3) support
This commit is contained in:
John Baldwin 2021-09-25 11:51:01 -07:00
parent 0def501d14
commit 9d324b5ffc

View file

@ -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) {