mirror of
https://github.com/mon/ifs_layeredfs.git
synced 2026-04-24 23:36:58 -05:00
Fix empty allow/blocklists
This commit is contained in:
parent
608f4984c2
commit
dddd5529cb
|
|
@ -29,7 +29,7 @@ void comma_separated_to_set(std::unordered_set<std::string> &dest, const char* a
|
|||
|
||||
const char* parse_list(const char* prefix, const char* arg, std::unordered_set<std::string> &dest) {
|
||||
size_t prefix_len = strlen(prefix) + strlen("=");
|
||||
if (strlen(arg) < prefix_len) {
|
||||
if (strlen(arg) <= prefix_len) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user