The branch main has been updated by des:

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

commit 6fc1bbbf62bda2f1b5be3a4be3d36bc964490ebe
Author:     Dag-Erling Smørgrav <d...@freebsd.org>
AuthorDate: 2023-01-25 17:03:00 +0000
Commit:     Dag-Erling Smørgrav <d...@freebsd.org>
CommitDate: 2023-01-25 17:03:00 +0000

    w: Unlike err(3), xo_err(3) won't accept a null format string.
    
    MFC after:      1 week
    X-MFC-with:     d90ff31ae5cd
    Sponsored by:   Klara, Inc.
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D38192
---
 usr.bin/w/w.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 8c33cd9d35b2..0a43957a73f8 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -400,7 +400,7 @@ main(int argc, char *argv[])
                ep->args = fmt_argv(kvm_getargv(kd, ep->kp, argwidth),
                    ep->kp->ki_comm, NULL, MAXCOMLEN);
                if (ep->args == NULL)
-                       xo_err(1, NULL);
+                       xo_err(1, "fmt_argv");
        }
        /* sort by idle time */
        if (sortidle && ehead != NULL) {

Reply via email to