Skip to content

Commit

Permalink
split name value should be use optional char.
Browse files Browse the repository at this point in the history
  • Loading branch information
郑树新 committed Sep 22, 2024
1 parent e446567 commit bf6e64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib_acl/src/stdlib/string/acl_split_nameval.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const char *acl_split_nameval2(char *buf, char **name, char **value, char sep)
if (*np == 0) {
return "missing attribute name";
}
SKIP(np, ep, !ACL_ISSPACE(*ep) && *ep != '='); /* find name end */
SKIP(np, ep, !ACL_ISSPACE(*ep) && *ep != sep); /* find name end */
SKIP(ep, cp, ACL_ISSPACE(*cp)); /* skip blanks before '=' */
if (*cp != sep) { /* need '=' */
return "missing '=' after attribute name";
Expand Down

0 comments on commit bf6e64e

Please sign in to comment.