From 0147d4dbc18c8329b4fa7716653968b76a02ff16 Mon Sep 17 00:00:00 2001 From: Marc Olivier Chouinard Date: Wed, 8 Mar 2017 16:41:12 -0500 Subject: [PATCH] FS-10112: switch_xml - Renaming a C variable name and type (No behavior change) --- src/switch_xml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/switch_xml.c b/src/switch_xml.c index 449fe7c206..4ef0e9ec6c 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -1879,18 +1879,18 @@ static void do_merge(switch_xml_t in, switch_xml_t src, const char *container, c const char *var = switch_xml_attr(param, "name"); const char *val = switch_xml_attr(param, "value"); - int go = 1; + switch_bool_t add_child = SWITCH_TRUE; for (iparam = switch_xml_child(itag, tag_name); iparam; iparam = iparam->next) { const char *ivar = switch_xml_attr(iparam, "name"); if (var && ivar && !strcasecmp(var, ivar)) { - go = 0; + add_child = SWITCH_FALSE; break; } } - if (go) { + if (add_child) { iitag = switch_xml_add_child_d(itag, tag_name, 0); switch_xml_set_attr_d(iitag, "name", var); switch_xml_set_attr_d(iitag, "value", val);