|
|
@@ -125,7 +125,7 @@ protected:
|
|
|
size_t const neg_start =
|
|
|
pos_end == 0 ? 1 : (pos_end == std::string::npos ? pos_end : pos_end + 2);
|
|
|
|
|
|
- if (pos_end > 0) {
|
|
|
+ if (pos_end > 0 && not str.empty()) {
|
|
|
tokenize(ptr->whitelist, std::string(str.substr(0, pos_end)));
|
|
|
}
|
|
|
if (neg_start != std::string::npos) {
|