INN commit: trunk/expire (fastrm.c)

INN Commit Russ_Allbery at isc.org
Sun Dec 14 05:05:10 UTC 2008


    Date: Saturday, December 13, 2008 @ 21:05:09
  Author: eagle
Revision: 8225

Be consistent about NULL pointer checks when freeing file lists.  Not
really a bug, but it makes it more obvious the code is correct.

Modified:
  trunk/expire/fastrm.c

----------+
 fastrm.c |    2 ++
 1 file changed, 2 insertions(+)

Modified: fastrm.c
===================================================================
--- fastrm.c	2008-12-14 05:01:47 UTC (rev 8224)
+++ fastrm.c	2008-12-14 05:05:09 UTC (rev 8225)
@@ -146,6 +146,8 @@
 {
     int i;
 
+    if (list->files == NULL)
+        return;
     for (i = 0; i < list->count; i++)
         free(list->files[i]);
     list->count = 0;




More information about the inn-committers mailing list