From 1491aa77ba15a0b7bc9a12879953a2162c310999 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 9 Jan 2026 21:23:27 -0600 Subject: [PATCH] mergerfs_webui.cpp --- src/mergerfs_webui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {