Using uninitialized (and wrong) variables is not good.
Jarkko Hietaniemi [Sun, 24 Feb 2002 13:02:53 +0000 (13:02 +0000)]
p4raw-id: //depot/perl@14851

regcomp.c

index 854dc59..2e8254e 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -3206,7 +3206,7 @@ tryagain:
                         }
                         else {
                              reguni(pRExC_state, ender, s, &unilen);
-                             if (numlen > 0) {
+                             if (unilen > 0) {
                                   s   += unilen;
                                   len += unilen;
                              }
@@ -3243,7 +3243,7 @@ tryagain:
                     }
                     else {
                          reguni(pRExC_state, ender, s, &unilen);
-                         if (numlen > 0) {
+                         if (unilen > 0) {
                               s   += unilen;
                               len += unilen;
                          }