because memset(vp, 0) is no longer appropriate
vp->op = T_OP_EQ;
}
+/** Initialise fields in an fr_pair_t without assigning a da
+ *
+ * Used only for temporary value-pairs which are not placed in any list.
+ */
+void fr_pair_init_null(fr_pair_t *vp)
+{
+ memset(vp, 0, sizeof(*vp));
+
+ pair_init_null(vp);
+}
+
/** Dynamically allocate a new attribute with no #fr_dict_attr_t assigned
*
* This is not the function you're looking for (unless you're binding
/* Initialisation */
void fr_pair_list_init(fr_pair_list_t *head) CC_HINT(nonnull);
+void fr_pair_init_null(fr_pair_t *vp) CC_HINT(nonnull);
+
/* Allocation and management */
fr_pair_t *fr_pair_alloc_null(TALLOC_CTX *ctx) CC_HINT(warn_unused_result);