'document' needs to be initialized to nil in SUAppcast post-c34e9b3

Bug #571486 reported by Smokey Ardisson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sparkle
Fix Committed
Critical
Unassigned

Bug Description

I'm relaying comments from Stuart Morgan about commit c34e9b3 (which itself addressed the comments I made in https://bugs.launchpad.net/sparkle/+bug/456514/comments/2 ):

'document' needs to be initialized to nil, otherwise when downloadFileName is nil, xmlItems = [document nodesForXPath:@"/rss/channel/item" error:&error]; will be executed, and will crash. The 'else failed' is also redundant, and can be removed.

(Note that, at least here, Sparkle won't even compile unless 'document' is initialized to nil, because warnings-as-errors in the Release xcconfig trips up the compile.)

Revision history for this message
Andy Matuschak (andymatuschak) wrote :

Oh, goodness. Substantial failure on my part. Fixed in a6fcfa6.

Changed in sparkle:
status: New → Fix Committed
importance: Undecided → Critical
milestone: none → 1.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.