@@ -939,13 +939,13 @@ static unlang_t *compile_update_to_edit(unlang_t *parent, unlang_compile_t *unla
939939 cf_item_insert_after (g -> cs , cs , group );
940940
941941 /*
942- * Hoist this out of the loop, and make sure it always has a '&' prefix.
942+ * Hoist this out of the loop, and make sure it never has a '&' prefix.
943943 */
944944 if (name2 ) {
945945 if (* name2 == '&' ) name2 ++ ;
946- snprintf (list_buffer , sizeof (list_buffer ), "& %s" , name2 );
946+ snprintf (list_buffer , sizeof (list_buffer ), "%s" , name2 );
947947 } else {
948- snprintf (list_buffer , sizeof (list_buffer ), "& %s" , tmpl_list_name (unlang_ctx -> rules -> attr .list_def , "<INVALID>" ));
948+ snprintf (list_buffer , sizeof (list_buffer ), "%s" , tmpl_list_name (unlang_ctx -> rules -> attr .list_def , "<INVALID>" ));
949949
950950 }
951951
@@ -1027,7 +1027,7 @@ static unlang_t *compile_update_to_edit(unlang_t *parent, unlang_compile_t *unla
10271027 char * p ;
10281028
10291029 attr_is_list :
1030- snprintf (attr_buffer , sizeof (attr_buffer ), "& %s" , attr );
1030+ snprintf (attr_buffer , sizeof (attr_buffer ), "%s" , attr );
10311031 list = attr_buffer ;
10321032 attr = NULL ;
10331033
@@ -1054,9 +1054,9 @@ static unlang_t *compile_update_to_edit(unlang_t *parent, unlang_compile_t *unla
10541054
10551055 } else {
10561056 if (strchr (attr , '[' ) == NULL ) {
1057- snprintf (value_buffer , sizeof (value_buffer ), "& %s[*]" , attr );
1057+ snprintf (value_buffer , sizeof (value_buffer ), "%s[*]" , attr );
10581058 } else {
1059- snprintf (value_buffer , sizeof (value_buffer ), "& %s" , attr );
1059+ snprintf (value_buffer , sizeof (value_buffer ), "%s" , attr );
10601060 }
10611061
10621062 rcode = edit_pair_alloc (group , cp , list , T_OP_SUB_EQ , value_buffer , T_INVALID );
@@ -1105,8 +1105,7 @@ static unlang_t *compile_update_to_edit(unlang_t *parent, unlang_compile_t *unla
11051105 rcode = edit_section_alloc (group , & child , list , op );
11061106 if (rcode < 0 ) break ;
11071107
1108- snprintf (attr_buffer , sizeof (attr_buffer ), "&%s" , attr );
1109- rcode = edit_pair_alloc (child , cp , attr_buffer , T_OP_EQ , value , op );
1108+ rcode = edit_pair_alloc (child , cp , attr , T_OP_EQ , value , op );
11101109 break ;
11111110
11121111 /*
@@ -1129,8 +1128,7 @@ static unlang_t *compile_update_to_edit(unlang_t *parent, unlang_compile_t *unla
11291128 return NULL ;
11301129 }
11311130
1132- snprintf (attr_buffer , sizeof (attr_buffer ), "&%s" , attr );
1133- rcode = edit_pair_alloc (child , cp , attr_buffer , op , value , T_OP_SUB_EQ );
1131+ rcode = edit_pair_alloc (child , cp , attr , op , value , T_OP_SUB_EQ );
11341132 break ;
11351133
11361134 /*
0 commit comments