From 2d925d871f16c25cdc687c262fdf2aaf3efd60ba Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 8 Apr 2024 17:52:46 -0500 Subject: [PATCH] config_passthrough.cpp --- src/config_passthrough.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }