Fix incorrect behavior: empty string OS test is valid

This commit is contained in:
dmiller 2022-12-15 22:43:45 +00:00
parent 37dd0969d3
commit d8cf5e6eac

View file

@ -694,8 +694,7 @@ bool FingerTest::str2AVal(const char *str, const char *end) {
if (!q) {
q = end;
}
if (p != q) // empty? use NULL
AVs[idx->second] = string_pool_substr(p, q);
AVs[idx->second] = string_pool_substr(p, q);
p = q + 1;
}
if (p < end) {