From: Heinrich Schuchardt Date: Wed, 23 Jan 2019 07:17:02 +0000 (+0100) Subject: hashtable: remove caps buffer X-Git-Tag: v2019.04-rc1~23^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=320194ae35801811bd7754f23ac04bd841d25aa3;p=oweals%2Fu-boot.git hashtable: remove caps buffer slre_match() checks if caps == NULL. In this case it does not try to update it. So there is no need to create a buffer caps which we do not evaluate. Signed-off-by: Heinrich Schuchardt --- diff --git a/lib/hashtable.c b/lib/hashtable.c index 93028ed83b..50ff40a397 100644 --- a/lib/hashtable.c +++ b/lib/hashtable.c @@ -542,9 +542,8 @@ static int match_string(int flag, const char *str, const char *pat, void *priv) case H_MATCH_REGEX: { struct slre *slrep = (struct slre *)priv; - struct cap caps[slrep->num_caps + 2]; - if (slre_match(slrep, str, strlen(str), caps)) + if (slre_match(slrep, str, strlen(str), NULL)) return 1; } break;