[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.0/kdelibs/khtml/ecma
From:       Maks Orlovich <maksim () kde ! org>
Date:       2008-06-29 19:25:07
Message-ID: 1214767507.484628.5608.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 826074 by orlovich:

automatically merged revision 826072:
Don't crash on empty property access
BUG:164391

 M  +1 -2      kjs_css.cpp  


--- branches/KDE/4.0/kdelibs/khtml/ecma/kjs_css.cpp #826073:826074
@@ -75,8 +75,7 @@
     // syntax for accessing properties, which camel-cases them
     // and can add prefixes to produce things like pixelFoo
     QString prop = p.qstring();
-    int i = prop.length();
-    while ( --i ) {
+    for (int i = prop.length() - 1; i >= 0; --i) {
         char c = prop[i].toLatin1();
         if ( c >= 'A' && c <= 'Z' )
             prop.insert( i, '-' );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic