From: Alan T. DeKok Date: Mon, 28 Jul 2025 12:27:59 +0000 (-0400) Subject: no need to check for NULL as a special case X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=dd41a8a983febc2ded15379caad1fa80d5c1c6a4;p=thirdparty%2Ffreeradius-server.git no need to check for NULL as a special case --- diff --git a/src/lib/util/pair.c b/src/lib/util/pair.c index 9ff72862c7..13e2f67016 100644 --- a/src/lib/util/pair.c +++ b/src/lib/util/pair.c @@ -2565,7 +2565,7 @@ int fr_pair_value_copy(fr_pair_t *dst, fr_pair_t *src) { if (!fr_cond_assert(src->data.type != FR_TYPE_NULL)) return -1; - if (dst->data.type != FR_TYPE_NULL) fr_value_box_clear_value(&dst->data); + fr_value_box_clear_value(&dst->data); fr_value_box_copy(dst, &dst->data, &src->data); /*