projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix tcsh hack in Configure
[p5sagit/p5-mst-13.2.git]
/
regcomp.c
diff --git
a/regcomp.c
b/regcomp.c
index
4c34b59
..
5dad7d7
100644
(file)
--- a/
regcomp.c
+++ b/
regcomp.c
@@
-697,6
+697,10
@@
I32 *flagp;
*flagp = flags;
return(ret);
}
+
+ if (!(flags&HASWIDTH) && op != '?')
+ FAIL("regexp *+ operand could be empty");
+
nextchar();
*flagp = (op != '+') ? (WORST|SPSTART) : (WORST|HASWIDTH);