mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-19 16:16:48 +00:00
Check string is not empty before resize in Config::keys
This commit is contained in:
committed by
trapexit
parent
8199cc8a8b
commit
a5eafb8972
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user