2007-11-30 Eric Seidel <eric@webkit.org>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Dec 2007 00:05:11 +0000 (00:05 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Dec 2007 00:05:11 +0000 (00:05 +0000)
        No review, build fix only.

        Fix uninitialized var warnings in release build.

        * JavaScriptCore.xcodeproj/project.pbxproj:
        * pcre/pcre_compile.cpp:
        (compile_regex):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28263 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/pcre/pcre_compile.cpp

index c0722c6..0249284 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-30  Eric Seidel  <eric@webkit.org>
+
+        No review, build fix only.
+        
+        Fix uninitialized var warnings in release build.
+
+        * JavaScriptCore.xcodeproj/project.pbxproj:
+        * pcre/pcre_compile.cpp:
+        (compile_regex):
+
 2007-11-30  Darin Adler  <darin@apple.com>
 
         Reviewed by Adam Roben.
index 78a3858..72f995b 100644 (file)
@@ -1909,10 +1909,8 @@ compile_regex(int options, int* brackets, uschar** codeptr,
     uschar* code = *codeptr;
     uschar* last_branch = code;
     uschar* start_bracket = code;
-    int firstbyte, reqbyte;
-    int branchfirstbyte, branchreqbyte;
-    
-    firstbyte = reqbyte = REQ_UNSET;
+    int firstbyte = REQ_UNSET;
+    int reqbyte = REQ_UNSET;
     
     /* Offset is set zero to mark that this bracket is still open */
     
@@ -1924,6 +1922,8 @@ compile_regex(int options, int* brackets, uschar** codeptr,
     while (true) {
         /* Now compile the branch */
         
+        int branchfirstbyte = REQ_UNSET;
+        int branchreqbyte = REQ_UNSET;
         if (!compile_branch(options, brackets, &code, &ptr, patternEnd, errorcodeptr,
                             &branchfirstbyte, &branchreqbyte, cd)) {
             *ptrptr = ptr;