[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r6970: turn future seg faults into asserts (tor/trunk/src/common)



Author: arma
Date: 2006-08-03 00:23:45 -0400 (Thu, 03 Aug 2006)
New Revision: 6970

Modified:
   tor/trunk/src/common/container.c
Log:
turn future seg faults into asserts


Modified: tor/trunk/src/common/container.c
===================================================================
--- tor/trunk/src/common/container.c	2006-08-03 04:22:25 UTC (rev 6969)
+++ tor/trunk/src/common/container.c	2006-08-03 04:23:45 UTC (rev 6970)
@@ -50,6 +50,7 @@
 void
 smartlist_free(smartlist_t *sl)
 {
+  tor_assert(sl != NULL);
   tor_free(sl->list);
   tor_free(sl);
 }