Download this file

recoll-simpleregexp-vector-provision.patch    14 lines (13 with data), 353 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/src/utils/smallut.cpp b/src/utils/smallut.cpp
index d2218c94..48acdc9f 100644
--- a/src/utils/smallut.cpp
+++ b/src/utils/smallut.cpp
@@ -1281,7 +1281,7 @@ public:
} else {
ok = false;
}
- matches.reserve(nmatch+1);
+ matches.resize(nmatch+1);
}
~Internal() {
regfree(&expr);