diff --git a/src/config_passthrough.cpp b/src/config_passthrough.cpp index d7a03f52..2b106032 100644 --- a/src/config_passthrough.cpp +++ b/src/config_passthrough.cpp @@ -34,11 +34,10 @@ Passthrough::from_string(const std::string &s_) better_enums::optional e; e = PassthroughEnum::_from_string_nothrow(s_.c_str()); - - if(!x) + if(!e) return -EINVAL; - _data = *x; + _data = *e; return 0; }