git: c7b8bc367f18 - main - getty: push assignment to inner block.
Xin LI
delphij at FreeBSD.org
Sun May 9 04:54:22 UTC 2021
The branch main has been updated by delphij:
URL: https://cgit.FreeBSD.org/src/commit/?id=c7b8bc367f18210d233b0e2185b5ce0d55c9ccaa
commit c7b8bc367f18210d233b0e2185b5ce0d55c9ccaa
Author: Xin LI <delphij at FreeBSD.org>
AuthorDate: 2021-05-09 04:53:58 +0000
Commit: Xin LI <delphij at 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;
More information about the dev-commits-src-main
mailing list