aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/db/upnp/Util.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/db/upnp/Util.cxx b/src/db/upnp/Util.cxx
index 0fd0d03db..b316b362b 100644
--- a/src/db/upnp/Util.cxx
+++ b/src/db/upnp/Util.cxx
@@ -19,13 +19,10 @@
#include "Util.hxx"
-#include <string>
-#include <map>
-#include <vector>
-#include <set>
-
#include <upnp/ixml.h>
+#include <assert.h>
+
/** Get rid of white space at both ends */
void
trimstring(std::string &s, const char *ws)
@@ -141,8 +138,9 @@ template <class T>
bool
csvToStrings(const char *s, T &tokens)
{
+ assert(tokens.empty());
+
std::string current;
- tokens.clear();
while (true) {
char ch = *s++;