diff --git a/src/mergerfs_webui.cpp b/src/mergerfs_webui.cpp index a19c631c..9f8379b8 100644 --- a/src/mergerfs_webui.cpp +++ b/src/mergerfs_webui.cpp @@ -384,6 +384,7 @@ _post_kvs_key(const httplib::Request &req_, return; } + int rv; fs::path mount; std::string key; std::string val; @@ -392,7 +393,7 @@ _post_kvs_key(const httplib::Request &req_, val = json::parse(req_.body); mount = req_.get_param_value("mount"); - int rv = mergerfs::api::set_kv(mount,key,val); + rv = mergerfs::api::set_kv(mount,key,val); if(rv >= 0) {