git: ba058d44b372 - stable/13 - procfs_doprocfile(): simplify
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Nov 2021 02:25:30 UTC
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);