Ignore:
Timestamp:
May 13, 2010, 5:05:20 AM (15 years ago)
Author:
[email protected]
Message:

No review, attempted build fix.

Try to fix Tiger build with some gratuitous initialization of
seemingly uninitialized variables.

  • wtf/text/StringImpl.h:

(WebCore::StringImpl::tryCreateUninitialized):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/text/StringImpl.h

    r59282 r59358  
    172172        }
    173173
    174         if (length > ((std::numeric_limits<size_t>::max() - sizeof(StringImpl)) / sizeof(UChar)))
     174        if (length > ((std::numeric_limits<size_t>::max() - sizeof(StringImpl)) / sizeof(UChar))) {
     175            output = 0;
    175176            return 0;
     177        }
    176178        StringImpl* resultImpl;
    177         if (!tryFastMalloc(sizeof(UChar) * length + sizeof(StringImpl)).getValue(resultImpl))
     179        if (!tryFastMalloc(sizeof(UChar) * length + sizeof(StringImpl)).getValue(resultImpl)) {
     180            output = 0;
    178181            return 0;
     182        }
    179183        output = reinterpret_cast<UChar*>(resultImpl + 1);
    180184        return adoptRef(new(resultImpl) StringImpl(length));
Note: See TracChangeset for help on using the changeset viewer.