diff options
Diffstat (limited to 'src/database/rrdlabels.c')
-rw-r--r-- | src/database/rrdlabels.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database/rrdlabels.c b/src/database/rrdlabels.c index 9ea1d7c582..b38da0ed47 100644 --- a/src/database/rrdlabels.c +++ b/src/database/rrdlabels.c @@ -1144,7 +1144,10 @@ static SIMPLE_PATTERN_RESULT simple_pattern_match_name_only_callback(const char // we return -1 to stop the walkthrough on first match t->searches++; - return simple_pattern_matches_extract(t->pattern, name, NULL, 0); + SIMPLE_PATTERN_RESULT ret = simple_pattern_matches_extract(t->pattern, name, NULL, 0); + if (ret == SP_MATCHED_NEGATIVE) + ret = SP_NOT_MATCHED; + return ret; } static SIMPLE_PATTERN_RESULT simple_pattern_match_name_and_value_callback(const char *name, const char *value, RRDLABEL_SRC ls __maybe_unused, void *data) { |