mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-24 03:37:16 +00:00
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:
parent
0def501d14
commit
9d324b5ffc
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue