From 06a0c90e5023699c8dd857f350281f3b33734f79 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 17 Dec 2007 20:51:32 +0000 Subject: [PATCH] add check. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6842 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_apr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_apr.c b/src/switch_apr.c index d77ad2d887..bb77e9f012 100644 --- a/src/switch_apr.c +++ b/src/switch_apr.c @@ -476,6 +476,7 @@ SWITCH_DECLARE(switch_status_t) switch_dir_open(switch_dir_t **new_dir, const ch 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;