From e071c2475e936a1ae727241445bf3be89b9e81ea Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 17 Aug 2020 17:07:20 +0200 Subject: [PATCH] remove usage of uninitialized value --- lib/config.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/config.cpp b/lib/config.cpp index 7142ee9df..43d114266 100644 --- a/lib/config.cpp +++ b/lib/config.cpp @@ -253,12 +253,9 @@ json_t * Config::resolveIncludes(json_t *in) else { std::string path = text.substr(kw.size()); - json_error_t err; - json_t *incl; - - incl = load(path); + json_t *incl = load(path); if (!incl) - throw ConfigError(str, err, "Failed to include config file from {}", path); + throw ConfigError(str, "Failed to include config file from {}", path); logger->debug("Included config from: {}", path);