Fix warning on GCC 4.0.1. No bug, r=jorendorff.
authorChris Leary <cdleary@mozilla.com>
Thu, 16 Sep 2010 11:46:58 -0700
changeset 54398 596e0ba1477e5d23ec77f0756f5b4ff1017d6c33
parent 54397 5c45e81f1a14a26c43dcdbe266672fb1fa4db5b2
child 54399 9eaff50687a3e1b31b565536648d5fc5c8317839
push idunknown
push userunknown
push dateunknown
reviewersjorendorff
milestone2.0b6pre
Fix warning on GCC 4.0.1. No bug, r=jorendorff.
js/src/jsstr.cpp
--- a/js/src/jsstr.cpp
+++ b/js/src/jsstr.cpp
@@ -1636,16 +1636,17 @@ class FlatMatch
     JSString        *patstr;
     const jschar    *pat;
     size_t          patlen;
     int32           match_;
 
     friend class RegExpGuard;
 
   public:
+    FlatMatch() : patstr(NULL) {} /* Old GCC wants this initialization. */
     JSString *pattern() const { return patstr; }
     size_t patternLength() const { return patlen; }
 
     /*
      * @note    The match is -1 when the match is performed successfully,
      *          but no match is found.
      */
     int32 match() const { return match_; }