From 0478474135020f913a6d558c3e9cfc80ab110992 Mon Sep 17 00:00:00 2001 From: RainRat Date: Fri, 17 Nov 2023 14:03:59 -0800 Subject: [PATCH] Update regex_suffix.c Undo functional change. I'll do it in a separate pull --- libclamav/regex_suffix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclamav/regex_suffix.c b/libclamav/regex_suffix.c index a089df47c9..6161413467 100644 --- a/libclamav/regex_suffix.c +++ b/libclamav/regex_suffix.c @@ -511,7 +511,7 @@ cl_error_t cli_regex2suffix(const char *pattern, regex_t *preg, suffix_callback goto done; } memset(&buf, 0, sizeof(buf)); - memset(&root_node, 0, sizeof(root_node)); + memset(&root_node, 0, sizeof(buf)); n->parent = &root_node; rc = build_suffixtree_descend(n, &buf, cb, cbdata, ®ex);