This reported incorrect errors - such as when an attribute is used as an
array index.
Invalid array indexes (e.g. undefined attributes or invalid data types)
are caught during policy compilation.
if ((*p == '#') || (*p == '*') || (*p == 'n')) {
p++;
- } else if (*p == '(') {
+ } else {
ssize_t slen;
bool eol = false;
}
p += slen;
continue;
-
- } else {
- /*
- * Allow numbers as array indexes
- */
- while ((*p >= '0') && (*p <= '9')) {
- p++;
- }
-
- if (*p != ']') {
- return_P("Array index is not an integer");
- }
}
if (*p == ']') {