use new ControlList::add() argument
[ardour.git] / libs / pbd / strsplit.cc
index 342daadaa222f67906504f5acc1c30d77dae79b3..f82abf4c92430b7c64014c4c4eb21f70a4d1e22d 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-#include <pbd/strsplit.h>
+#include "pbd/strsplit.h"
 
 using namespace std;
 using namespace Glib;
@@ -50,7 +50,9 @@ split (string str, vector<string>& result, char splitchar)
        remaining = str;
 
        while ((pos = remaining.find_first_of (splitchar)) != string::npos) {
-               result.push_back (remaining.substr (0, pos));
+               if (pos != 0) {
+                       result.push_back (remaining.substr (0, pos));
+               }
                remaining = remaining.substr (pos+1);
        }