Commit 1feedd4d authored by Max Kellermann's avatar Max Kellermann

db/upnp: require an empty token list in csvToStrings()

parent 0ec18089
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment