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:
parent
9244e31574
commit
33cebf5f4e
@ -1281,7 +1281,7 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
matches.reserve(nmatch+1);
|
matches.resize(nmatch+1);
|
||||||
}
|
}
|
||||||
~Internal() {
|
~Internal() {
|
||||||
regfree(&expr);
|
regfree(&expr);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user