diff options
| author | Heinrich Schuchardt <[email protected]> | 2019-01-23 08:17:02 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-01-26 08:13:58 -0500 |
| commit | 320194ae35801811bd7754f23ac04bd841d25aa3 (patch) | |
| tree | cc583099551db9398507ea3333f4c90856fe905b /lib/hashtable.c | |
| parent | e35d2a755349bd1247a243ab6ddb7bd4dc294d62 (diff) | |
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 <[email protected]>
Diffstat (limited to 'lib/hashtable.c')
| -rw-r--r-- | lib/hashtable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/hashtable.c b/lib/hashtable.c index 93028ed83b2..50ff40a3974 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; |
