From 1086cba2beee42d80929f49f68ec341693e54943 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Mon, 23 May 2011 22:51:43 -0500 Subject: [PATCH] fix trivial compiler warning --- src/switch_xml.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/switch_xml.c b/src/switch_xml.c index 2d2ba4d240..4664c07c71 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -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; } }