The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=c7b8bc367f18210d233b0e2185b5ce0d55c9ccaa
commit c7b8bc367f18210d233b0e2185b5ce0d55c9ccaa Author: Xin LI <delp...@freebsd.org> AuthorDate: 2021-05-09 04:53:58 +0000 Commit: Xin LI <delp...@freebsd.org> CommitDate: 2021-05-09 04:53:58 +0000 getty: push assignment to inner block. No functional change. MFC after: 2 weeks --- libexec/getty/subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c index 9958d193aa60..b8f359355afc 100644 --- a/libexec/getty/subr.c +++ b/libexec/getty/subr.c @@ -564,8 +564,8 @@ makeenv(char *env[]) strlcat(termbuf, TT, sizeof(termbuf)); *ep++ = termbuf; } - if ((p = EV)) { - q = p; + if (EV) { + p = EV; while ((q = strchr(q, ','))) { *q++ = '\0'; *ep++ = p; _______________________________________________ dev-commits-src-main@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"