]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add back goodness refactored out
authorTravis Cross <tc@traviscross.com>
Sat, 30 Aug 2014 01:32:57 +0000 (01:32 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 30 Aug 2014 01:32:57 +0000 (01:32 +0000)
src/mod/applications/mod_hash/mod_hash.c

index 0f040f50933897bbab1075d87d20ec2e3f55fa77..133f05de3e6ddf98efdcd69e8d87d90aaf7903ec 100644 (file)
@@ -288,9 +288,9 @@ SWITCH_LIMIT_RELEASE(limit_release_hash)
 
        /* clear for uuid */
        if (realm == NULL && resource == NULL) {
-               switch_hash_index_t *hi;
+               switch_hash_index_t *hi = NULL;
                /* Loop through the channel's hashtable which contains mapping to all the limit_hash_item_t referenced by that channel */
-               while ((hi = switch_core_hash_first_iter(pvt->hash, NULL))) {
+               while ((hi = switch_core_hash_first_iter(pvt->hash, hi))) {
                        void *val = NULL;
                        const void *key;
                        switch_ssize_t keylen;