mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Check string is not empty before resize in Config::keys
This commit is contained in:
parent
ca4c7304da
commit
7ee2d65cad
1 changed files with 2 additions and 1 deletions
|
|
@ -325,7 +325,8 @@ Config::keys(std::string &s_) const
|
|||
s_ += '\0';
|
||||
}
|
||||
|
||||
s_.resize(s_.size() - 1);
|
||||
if(!s_.empty())
|
||||
s_.resize(s_.size() - 1);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue