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:
committed by
Steinar H. Gunderson
parent
80d6f4a60c
commit
889638fcea
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user