p4raw-id: //depot/perl@11869
switch (*proto++) {
case '[':
if (contextclass++ == 0) {
- e = strchr(proto, ']');
+ e = strchr(proto, ']');
if (!e || e == proto)
goto oops;
}
o2->op_sibling = sib;
prev->op_sibling = o2;
}
- if (contextclass) {
+ if (contextclass && e) {
proto = e + 1;
contextclass = 0;
}