If you pass invalid line number to IsValidLine it returns false
parent
f60b1544a8
commit
cd21f739ae
|
@ -199,6 +199,8 @@ bool Tle::IsValidLine(const std::string& str, const unsigned char line_number) {
|
||||||
} else if (2 == line_number) {
|
} else if (2 == line_number) {
|
||||||
if (!ValidateLine(str, line2_pattern))
|
if (!ValidateLine(str, line2_pattern))
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue