Fix CID 12439

This commit is contained in:
Lorenz Meier
2015-01-20 14:07:59 +01:00
parent 764f499405
commit fc9c67f5be
+6 -5
View File
@@ -3070,12 +3070,13 @@ lockdown(int argc, char *argv[])
if (ret > 0) { if (ret > 0) {
read(0, &c, 1); if (read(0, &c, 1) > 0) {
if (c != 'y') { if (c != 'y') {
exit(0); exit(0);
} else if (c == 'y') { } else if (c == 'y') {
break; break;
}
} }
} }