mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
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 <xypron.glpk@gmx.de>
This commit is contained in:
parent
e35d2a7553
commit
320194ae35
@ -542,9 +542,8 @@ static int match_string(int flag, const char *str, const char *pat, void *priv)
|
|||||||
case H_MATCH_REGEX:
|
case H_MATCH_REGEX:
|
||||||
{
|
{
|
||||||
struct slre *slrep = (struct slre *)priv;
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user