Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2023 17:03:33 GMT
From:      =?utf-8?Q?Dag-Erling=20Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6fc1bbbf62bd - main - w: Unlike err(3), xo_err(3) won't accept a null format string.
Message-ID:  <202301251703.30PH3XN8017838@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by des:

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

commit 6fc1bbbf62bda2f1b5be3a4be3d36bc964490ebe
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-01-25 17:03:00 +0000
Commit:     Dag-Erling Smørgrav <des@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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301251703.30PH3XN8017838>