Omit unneeded test in change_field()
* fields.c (change_field): Omit unnecessary test. Signed-off-by: Paul Eggert <eggert@cs.ucla.edu> Signed-off-by: Alejandro Colomar <alx@kernel.org> Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
parent
5686d9162e
commit
690ca8c238
@ -96,7 +96,7 @@ void change_field (char *buf, size_t maxsize, const char *prompt)
|
||||
*cp = '\0';
|
||||
|
||||
cp = newf;
|
||||
while (('\0' != *cp) && isspace (*cp)) {
|
||||
while (isspace (*cp)) {
|
||||
cp++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user