From b127a3b82164711ef21462d84d56c81df406a074 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Wed, 26 Apr 2000 10:38:19 +0000 Subject: Add braces to avoid ambiguity in a nested conditional (silences a gcc warning). --- usr.bin/login/login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index e6dc807..967463c 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -766,7 +766,7 @@ getloginname() if (p < nbuf + (NBUFSIZ - 1)) *p++ = ch; } - if (p > nbuf) + if (p > nbuf) { if (nbuf[0] == '-') (void)fprintf(stderr, "login names may not start with '-'.\n"); @@ -775,6 +775,7 @@ getloginname() username = nbuf; break; } + } } } -- cgit v1.1