Date: Sat, 6 Nov 2021 02:25:28 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: 392fbf5cce85 - stable/13 - proc_get_binpath(): return empty string instead of NULL Message-ID: <202111060225.1A62PSjf077621@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=392fbf5cce85547824a6d514f5f8b1125094baea commit 392fbf5cce85547824a6d514f5f8b1125094baea Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-03 15:11:33 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-11-06 02:12:32 +0000 proc_get_binpath(): return empty string instead of NULL (cherry picked from commit 02de91d740235f186321d7d3e11d09737daba43e) --- sys/kern/kern_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 2156c5c465ba..d11f651960c0 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -2252,7 +2252,7 @@ proc_get_binpath(struct proc *p, char *binname, char **retbuf, vp = p->p_textvp; if (vp == NULL) { PROC_UNLOCK(p); - *retbuf = NULL; + *retbuf = ""; *freebuf = NULL; return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111060225.1A62PSjf077621>