8211163: UNIX version of Java_java_io_Console_echo does not return a clean boolean

Reviewed-by: shade, alanb
This commit is contained in:
Andrew Haley 2018-10-03 17:29:47 +01:00
parent 493b31ba91
commit 1ef860cf09

View File

@ -56,7 +56,7 @@ Java_java_io_Console_echo(JNIEnv *env,
JNU_ThrowIOExceptionWithLastError(env, "tcgetattr failed");
return !on;
}
old = (tio.c_lflag & ECHO);
old = (tio.c_lflag & ECHO) != 0;
if (on) {
tio.c_lflag |= ECHO;
} else {