blob: d806d2c9ed558245853f9b51e23c2a98e05f3bb5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- lib/ProxySQL_GloVars.cpp.orig 2025-11-05 18:21:29 UTC
+++ lib/ProxySQL_GloVars.cpp
@@ -334,7 +334,10 @@ void update_ulong_var_if_set(uint64_t& cur_val, ez::ez
void update_ulong_var_if_set(uint64_t& cur_val, ez::ezOptionParser* opt, const char* cmd_opt) {
if (opt->isSet(cmd_opt)) {
- opt->get(cmd_opt)->getULong(cur_val);
+ unsigned long new_val = cur_val;
+
+ opt->get(cmd_opt)->getULong(new_val);
+ cur_val = new_val;
}
}
|