]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix trivial compiler warning
authorJeff Lenk <jeff@jefflenk.com>
Tue, 24 May 2011 03:51:43 +0000 (22:51 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 24 May 2011 03:51:43 +0000 (22:51 -0500)
src/switch_xml.c

index 2d2ba4d240f3373dc67418dc4c95f7b7902ea43c..4664c07c71d6f5e80d3528183f7a39cd0f002380 100644 (file)
@@ -1850,13 +1850,11 @@ SWITCH_DECLARE(uint32_t) switch_xml_clear_user_cache(const char *key, const char
                
        } else {
                
-       top:
-               for (hi = switch_hash_first(NULL, CACHE_HASH); hi; hi = switch_hash_next(hi)) {
+               while ((hi = switch_hash_first(NULL, CACHE_HASH))) {
                        switch_hash_this(hi, &var, NULL, &val);
                        switch_xml_free(val);
                        switch_core_hash_delete(CACHE_HASH, var);
                        r++;
-                       goto top;
                }
        }