diff --git a/core_options.c b/core_options.c index 960336da48..f3b1d2067d 100644 --- a/core_options.c +++ b/core_options.c @@ -173,9 +173,9 @@ error: bool core_option_updated(core_option_manager_t *opt) { - if (opt) - return opt->updated; - return false; + if (!opt) + return false; + return opt->updated; } void core_option_flush(core_option_manager_t *opt)