[Freeswitch-svn] [commit] r6842 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Mon Dec 17 15:51:32 EST 2007


Author: mikej
Date: Mon Dec 17 15:51:32 2007
New Revision: 6842

Modified:
   freeswitch/trunk/src/switch_apr.c

Log:
add check.

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Mon Dec 17 15:51:32 2007
@@ -476,6 +476,7 @@
 	switch_status_t status;
 	switch_dir_t *dir = malloc(sizeof(*dir));
 
+	switch_assert(dir);
 	memset(dir, 0, sizeof(*dir));
 	if ((status = apr_dir_open(&(dir->dir_handle), dirname, pool)) == APR_SUCCESS) {
 		*new_dir = dir;



More information about the Freeswitch-svn mailing list