Skip to content

Commit

Permalink
another fix for the static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
krevis committed Mar 17, 2011
1 parent 87d8180 commit d611114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Frameworks/SnoizeMIDISpy/Framework/GenLinkedList.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ OSErr AddToTail( GenLinkedList *pList, void *pData )

/* create memory for new node, if this fails we _must_ bail */
err = ( ( tmpNode = (GenNode*) NewPtr( sizeof( GenNode ) ) ) != NULL ) ? noErr : MemError();
if( err == noErr )
if( tmpNode != NULL && err == noErr )
{
tmpNode->pData = pData; /* Setup new node */
tmpNode->pNext = NULL;
Expand Down

0 comments on commit d611114

Please sign in to comment.