Permalink
Browse files

Signed-off-by: Alfons Hoogervorst <Alfons@Itinerarios.local>

* call super constructor before touching super's members;
  • Loading branch information...
1 parent 92f9bab commit ba7712185551309b1e79af799780b31ad39ef004 Alfons Hoogervorst committed Jun 6, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 StreamingXMLParser/AQXMLParser.m
@@ -761,8 +761,8 @@ - (id) initWithStream: (NSInputStream *) stream
- (id) initWithData: (NSData *) data
{
NSInputStream * stream = [[NSInputStream alloc] initWithData: data];
- _internal->expectedDataLength = (float) [data length];
id result = [self initWithStream: stream];
+ _internal->expectedDataLength = (float) [data length];
[stream release];
return ( result );
}

0 comments on commit ba77121

Please sign in to comment.