@cryptotaxi247 / netdata-1 / commits / 0109b4c7a

Fix corruption in expression value replacement (#18865)

Skip if valid

Stelios Fragkakis committed Oct 25, 2024 at 17:20 UTC 0109b4c7a22ad7172bcfe94ef4a687dcbd24057d
1 file changed +1 -1
src/libnetdata/eval/eval.c
+1 -1
@@ -1255,7 +1255,7 @@ void expression_hardcode_variable(EVAL_EXPRESSION *expression, STRING *variable,
1255 }
1256
1257 if (s) {
1258 - if (s == s1 && !is_valid_variable_character(s[len])) {
1258 + if (s == s1 && is_valid_variable_character(s[len])) {
1259 // Move past the variable if it's part of a larger word.
1260 source_ptr = s + len;
1261 continue;