git: 392fbf5cce85 - stable/13 - proc_get_binpath(): return empty string instead of NULL

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sat, 06 Nov 2021 02:25:28 UTC
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);
 	}