2009-01-20 Darin Adler <darin@apple.com>
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jan 2009 18:38:58 +0000 (18:38 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jan 2009 18:38:58 +0000 (18:38 +0000)
        * runtime/StringPrototype.cpp:
        (JSC::substituteBackreferences): Add back the initialization to fix the build.

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

JavaScriptCore/ChangeLog
JavaScriptCore/runtime/StringPrototype.cpp

index 30679cb..e5e59e3 100644 (file)
@@ -1,5 +1,10 @@
 2009-01-20  Darin Adler  <darin@apple.com>
 
+        * runtime/StringPrototype.cpp:
+        (JSC::substituteBackreferences): Add back the initialization to fix the build.
+
+2009-01-20  Darin Adler  <darin@apple.com>
+
         Reviewed by Mark Rowe.
 
         Bug 23352: Turn on more compiler warnings in the Mac build
index df81536..081f36b 100644 (file)
@@ -135,7 +135,7 @@ static inline UString substituteBackreferences(const UString& replacement, const
 {
     UString substitutedReplacement;
     int offset = 0;
-    int i;
+    int i = -1;
     while ((i = replacement.find('$', i + 1)) != -1) {
         if (i + 1 == replacement.size())
             break;