diff --git a/plocate.cpp b/plocate.cpp index 234b703..36f087e 100644 --- a/plocate.cpp +++ b/plocate.cpp @@ -799,6 +799,7 @@ void parse_dbpaths(const char *ptr, vector *output) if (*ptr == ':') { // Separator. output->push_back(move(str)); + str.clear(); ++ptr; continue; }