X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FVCBackend.cpp;h=a152a28d101e11f209f202243f6c0b011a91d2f3;hb=a550f7d91e2f945517cf96ad5f68788944539ecb;hp=3eeb3d6a3ef3ccccf1db19aecfdd76ede3b1e8d7;hpb=d6d412c49e47027a38698d906f6ad853c8674582;p=lyx.git diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp index 3eeb3d6a3e..a152a28d10 100644 --- a/src/VCBackend.cpp +++ b/src/VCBackend.cpp @@ -31,6 +31,7 @@ #include "support/TempFile.h" #include +#include #include using namespace std; @@ -568,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