mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-04 12:03:41 +02:00
src/string.cpp: in strjoin() skip empty items.
This commit is contained in:
parent
826ad10ce9
commit
2b20f8aaf4
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ std::string strjoin(const strlist_t& list, const std::string& delim) {
|
||||||
std::string out;
|
std::string out;
|
||||||
|
|
||||||
for(const std::string& item : list) {
|
for(const std::string& item : list) {
|
||||||
|
if (item.length() < 1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
out += item + delim;
|
out += item + delim;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue