Changeset 20775 in webkit for trunk/JavaScriptCore
- Timestamp:
- Apr 6, 2007, 8:02:11 PM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r20759 r20775 1 2007-04-06 Krzysztof Kowalczyk <[email protected]> 2 3 Reviewed by darin. 4 5 Coverity fix. Coverity says: 6 "Event var_deref_model: Variable "sourceRanges" tracked as NULL was passed to a 7 function that dereferences it" 8 9 * kjs/string_object.cpp: 10 (KJS::replace): 11 1 12 2007-04-06 Geoffrey Garen <[email protected]> 2 13 -
trunk/JavaScriptCore/kjs/string_object.cpp
r20310 r20775 388 388 pushSourceRange(sourceRanges, sourceRangeCount, sourceRangeCapacity, UString::Range(lastIndex, source.size() - lastIndex)); 389 389 390 UString result = source.spliceSubstringsWithSeparators(sourceRanges, sourceRangeCount, replacements, replacementCount); 390 UString result; 391 if (sourceRanges) 392 result = source.spliceSubstringsWithSeparators(sourceRanges, sourceRangeCount, replacements, replacementCount); 391 393 392 394 delete [] sourceRanges;
Note:
See TracChangeset
for help on using the changeset viewer.