fix fedora 28 crash caused by assertion (no actual issue). Use resize, not reserve to provision a c++ vector actually used as c storage

This commit is contained in:
Jean-Francois Dockes 2018-05-13 18:27:47 +02:00
parent 9244e31574
commit 33cebf5f4e

View File

@ -1281,7 +1281,7 @@ public:
} else {
ok = false;
}
matches.reserve(nmatch+1);
matches.resize(nmatch+1);
}
~Internal() {
regfree(&expr);