Repositories » libk0
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

The for loop checks if n is NULL, so another check is not necessary.

Changeset 8a47745c3345

Parent 1a341b454e05

by Rup Palchowdhury

Changes to one file · Browse files at 8a47745c3345 Showing diff from parent 1a341b454e05 Diff from another changeset...

Change 1 of 1 Show Entire File klist.c Stacked
 
21
22
23
24
25
26
27
28
 
21
22
23
 
 
24
25
26
@@ -21,8 +21,6 @@
   void freelist(Node *n, void (*freedata)(void*))  { - if (n == NULL) - return;   Node *next;   for (; n != NULL; n = next) {   next = n->next;