1
1
mirror of http://git.sesse.net/plocate synced 2025-10-05 23:42:49 +02:00

Reset string explicitely to prevent undefined behavior

This commit is contained in:
Michal Sekletar
2024-08-28 16:01:26 +02:00
committed by Steinar H. Gunderson
parent 80d6f4a60c
commit 889638fcea

View File

@@ -799,6 +799,7 @@ void parse_dbpaths(const char *ptr, vector<string> *output)
if (*ptr == ':') {
// Separator.
output->push_back(move(str));
str.clear();
++ptr;
continue;
}