From: Michal Nowak Date: Tue, 21 Oct 2025 09:00:36 +0000 (+0200) Subject: Use SET_IF_NOT_NULL in isc__nm_base64* X-Git-Tag: v9.21.15~46^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d91e8ed57500a48b86fee9cd12b1964f639e63b5;p=thirdparty%2Fbind9.git Use SET_IF_NOT_NULL in isc__nm_base64* --- diff --git a/lib/isc/netmgr/http.c b/lib/isc/netmgr/http.c index 814deaf3713..645f2560599 100644 --- a/lib/isc/netmgr/http.c +++ b/lib/isc/netmgr/http.c @@ -3539,9 +3539,7 @@ isc__nm_base64url_to_base64(isc_mem_t *mem, const char *base64url, INSIST(i == len); - if (res_len != NULL) { - *res_len = len; - } + SET_IF_NOT_NULL(res_len, len); res[len] = '\0'; @@ -3592,9 +3590,7 @@ isc__nm_base64_to_base64url(isc_mem_t *mem, const char *base64, } } end: - if (res_len) { - *res_len = i; - } + SET_IF_NOT_NULL(res_len, i); res[i] = '\0';