Skip to content

Commit

Permalink
ID begins with a digit or minus sign
Browse files Browse the repository at this point in the history
  • Loading branch information
skosachiov authored and radosroka committed Apr 24, 2024
1 parent 5d58216 commit 04c1dc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/library/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ static int assign_subject(lnode *n, int type, const char *ptr2, int lineno)

ptr = strtok_r(tmp, ",", &saved);
while (ptr) {
if (isdigit(*ptr)) {
// starts with a digit or minus sign
if (isdigit(*ptr) || *ptr == '-') {
errno = 0;
long val = strtol(ptr, NULL, 10);
if (errno) {
Expand Down

0 comments on commit 04c1dc3

Please sign in to comment.