mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
When scanning CVS skip unreadable lines
Spotted by coverity.
This commit is contained in:
parent
21ecd4528a
commit
d54578a951
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user