Date: Sat, 25 Mar 2023 17:08:09 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 72f501d07a02 - main - secure_getenv: Add () around return values Message-ID: <202303251708.32PH89cP079138@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=72f501d07a02028a51c15614f7ac4482ce8345bd commit 72f501d07a02028a51c15614f7ac4482ce8345bd Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2023-03-14 15:25:04 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-03-25 17:06:13 +0000 secure_getenv: Add () around return values Style only change, no functional change intended. Sponsored by: Netflix --- lib/libc/stdlib/getenv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c index 86a846d58c69..001b9669bda9 100644 --- a/lib/libc/stdlib/getenv.c +++ b/lib/libc/stdlib/getenv.c @@ -455,8 +455,8 @@ char * secure_getenv(const char *name) { if (issetugid()) - return NULL; - return getenv(name); + return (NULL); + return (getenv(name)); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303251708.32PH89cP079138>