Date: Sat, 6 Nov 2021 02:25:30 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: ba058d44b372 - stable/13 - procfs_doprocfile(): simplify Message-ID: <202111060225.1A62PUJs077669@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ba058d44b3724ba3516e71ee204f806d1031eb1f commit ba058d44b3724ba3516e71ee204f806d1031eb1f Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-04 03:58:06 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-11-06 02:12:32 +0000 procfs_doprocfile(): simplify (cherry picked from commit 15bd9fa3bea794054b4a5bd2f4bb71b0ba3aa3ba) --- sys/fs/procfs/procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/procfs/procfs.c b/sys/fs/procfs/procfs.c index 697bbfc9877a..38cfb4752279 100644 --- a/sys/fs/procfs/procfs.c +++ b/sys/fs/procfs/procfs.c @@ -77,7 +77,7 @@ procfs_doprocfile(PFS_FILL_ARGS) PROC_LOCK(p); error = proc_get_binpath(p, binpath, &fullpath, &freepath); if (error == 0) - sbuf_printf(sb, "%s", fullpath == NULL ? "" : fullpath); + sbuf_cat(sb, fullpath); free(binpath, M_TEMP); free(freepath, M_TEMP); return (error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111060225.1A62PUJs077669>