The withLength variable wasn't initialized properly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35613 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1697,7 +1697,7 @@ BString::ReplaceCharsSet(const char* setOfChars, const char* with)
|
||||
BString setString(setOfChars);
|
||||
BString result;
|
||||
|
||||
int32 withLength = withLength;
|
||||
int32 withLength = strlen(with);
|
||||
int32 charCount = CountChars();
|
||||
for (int32 i = 0; i < charCount; i++) {
|
||||
int32 charLength;
|
||||
|
||||
Reference in New Issue
Block a user