]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows build
authorMichael Jerris <mike@jerris.com>
Tue, 3 Feb 2009 23:16:10 +0000 (23:16 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 3 Feb 2009 23:16:10 +0000 (23:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11624 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_limit/mod_limit.c

index 497293f7dcbf1b9b1509db98b52800b3b6154328..3fc63be99b11e9d4abe32a9943854e494fe604c5 100644 (file)
@@ -874,6 +874,7 @@ SWITCH_STANDARD_APP(limit_hash_function)
        if (!(item = (limit_hash_item_t*)switch_core_hash_find(globals.limit_hash, hashkey))) {
                /* No, create an empty structure and add it, then continue like as if it existed */
                item = (limit_hash_item_t*)malloc(sizeof(limit_hash_item_t));
+               switch_assert(item);
                memset(item, 0, sizeof(limit_hash_item_t));
                switch_core_hash_insert(globals.limit_hash, hashkey, item);
        }