git: a23f4ab7a170 - stable/13 - mount: Don't pass a NULL format string to xo_err().

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 10 May 2022 23:24:08 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=a23f4ab7a1700962187889d797fa699da015fb33

commit a23f4ab7a1700962187889d797fa699da015fb33
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-09-25 18:51:01 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-10 22:51:49 +0000

    mount: Don't pass a NULL format string to xo_err().
    
    This fixes a -Wformat error from GCC 9.
    
    Fixes:          e725ee7eb672 mount: add libxo(3) support
    (cherry picked from commit 9d324b5ffc8a783ceff2a78dea19602a1d8f045a)
---
 sbin/mount/mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 4073448b7400..cbb2a8784e26 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -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) {