Fix small mistake when allocating memory for attributes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Stefan Bidigaray 2011-03-12 14:39:29 +00:00
parent 0b402994bb
commit ba8d2a150d

View file

@ -597,7 +597,7 @@ static NSUInteger _defaultBehavior = NSNumberFormatterBehavior10_4;
internal->_style = NSNumberFormatterNoStyle; internal->_style = NSNumberFormatterNoStyle;
internal->_symbols = NSZoneCalloc (z, MAX_SYMBOLS, sizeof(id)); internal->_symbols = NSZoneCalloc (z, MAX_SYMBOLS, sizeof(id));
internal->_textAttributes = NSZoneCalloc (z, MAX_TEXTATTRIBUTES, sizeof(id)); internal->_textAttributes = NSZoneCalloc (z, MAX_TEXTATTRIBUTES, sizeof(id));
internal->_attributes = NSZoneCalloc (z, MAX_ATTRIBUTES, sizeof(id)); internal->_attributes = NSZoneCalloc (z, MAX_ATTRIBUTES, sizeof(int));
if (!(internal->_symbols if (!(internal->_symbols
&& internal->_textAttributes && internal->_textAttributes
&& internal->_attributes)) && internal->_attributes))