mirror of
https://github.com/opnsense/src.git
synced 2026-04-04 17:05:14 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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