When scanning CVS skip unreadable lines

Spotted by coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2017-03-31 11:33:34 +02:00
parent 21ecd4528a
commit d54578a951

View File

@ -569,10 +569,10 @@ void CVS::scanMaster()
if (contains(line, tmpf)) {
// Ok extract the fields.
smatch sm;
// false positive from coverity
// coverity[CHECKED_RETURN]
regex_match(line, sm, reg);
if (!regex_match(line, sm, reg)) {
LYXERR(Debug::LYXVC, "\t Cannot parse line. Skipping.");
continue;
}
//sm[0]; // whole matched string
//sm[1]; // filename