env: style(9) fix, add a space

Reported by:	pstef
Fixes:	55deb0a5f0 ("service(8): use an environment more [...]")
This commit is contained in:
Kyle Evans 2021-03-03 14:20:17 -06:00
parent 55deb0a5f0
commit 0c1a5eaae8

2
usr.bin/env/env.c vendored
View File

@ -144,7 +144,7 @@ main(int argc, char **argv)
login_class = strchr(login_name, '/'); login_class = strchr(login_name, '/');
if (login_class) if (login_class)
*login_class++ = '\0'; *login_class++ = '\0';
if (*login_name != '\0' && strcmp(login_name,"-") != 0) { if (*login_name != '\0' && strcmp(login_name, "-") != 0) {
pw = getpwnam(login_name); pw = getpwnam(login_name);
if (pw == NULL) { if (pw == NULL) {
char *endp = NULL; char *endp = NULL;