mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-11 03:29:33 +00:00
fix(userspace,unit_tests): fixed bool parsing.
Moreover, added some more tests around env vars. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
committed by
poiana
parent
0c0fb63008
commit
7805bf5ad5
@@ -93,7 +93,7 @@ public:
|
||||
}
|
||||
std::stringstream ss(str);
|
||||
T result;
|
||||
if (ss >> result) return result;
|
||||
if (ss >> std::boolalpha >> result) return result;
|
||||
return default_value;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user