git: 0c1a5eaae832 - main - env: style(9) fix, add a space

Kyle Evans kevans at FreeBSD.org
Wed Mar 3 20:22:25 UTC 2021


The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c1a5eaae83267365330437adb60f44e1a622a2b

commit 0c1a5eaae83267365330437adb60f44e1a622a2b
Author:     Kyle Evans <kevans at FreeBSD.org>
AuthorDate: 2021-03-03 20:20:17 +0000
Commit:     Kyle Evans <kevans at FreeBSD.org>
CommitDate: 2021-03-03 20:21:56 +0000

    env: style(9) fix, add a space
    
    Reported by:    pstef
    Fixes:  55deb0a5f089 ("service(8): use an environment more [...]")
---
 usr.bin/env/env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/env/env.c b/usr.bin/env/env.c
index 0aa42a4663dd..a0f55d665a9a 100644
--- a/usr.bin/env/env.c
+++ b/usr.bin/env/env.c
@@ -144,7 +144,7 @@ main(int argc, char **argv)
 		login_class = strchr(login_name, '/');
 		if (login_class)
 			*login_class++ = '\0';
-		if (*login_name != '\0' && strcmp(login_name,"-") != 0) {
+		if (*login_name != '\0' && strcmp(login_name, "-") != 0) {
 			pw = getpwnam(login_name);
 			if (pw == NULL) {
 				char *endp = NULL;


More information about the dev-commits-src-main mailing list