strip trailing seps

master
Daniel Kolesa 2018-04-14 21:34:24 +02:00
parent 96a3c9da30
commit 9c2fdd5f67
1 changed files with 4 additions and 0 deletions

View File

@ -345,6 +345,10 @@ private:
}
p_path.append(s);
}
/* strip trailing separator */
if ((p_path.length() > 1) && (p_path.back() == sep)) {
p_path.pop_back();
}
}
void convert_path() {