Skip to content

Commit

Permalink
fix scoping error
Browse files Browse the repository at this point in the history
  • Loading branch information
ericqweinstein committed Aug 15, 2013
1 parent 3e0e456 commit a63b052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cci/ch_2/2_3.c
Expand Up @@ -36,7 +36,7 @@ int main(void)
// to N, then delete N + 1.
void deleteNode(Node *n)
{
Node *nodeToDelete = n -> next;
nodeToDelete = n -> next;
n -> data = nodeToDelete -> data;
n -> next = nodeToDelete -> next;
nodeToDelete = NULL;
Expand Down

0 comments on commit a63b052

Please sign in to comment.