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

freelist() checks for NULL pointer passed to it.

Changeset 9b8bb97f199d

Parent 50f1d454b20b

by Rup Palchowdhury

Changes to one file · Browse files at 9b8bb97f199d Showing diff from parent 50f1d454b20b Diff from another changeset...

Change 1 of 1 Show Entire File klist.c Stacked
 
67
68
69
 
 
70
71
72
 
67
68
69
70
71
72
73
74
@@ -67,6 +67,8 @@
   void freelist(Node *p, void (*freedata)(void*))  { + if (p == NULL) + return;   Node *next;   for (; p != NULL; p = next) {   next = p->next;