From: NINIKA Date: Mon, 23 Jun 2025 14:12:57 +0000 (+0300) Subject: asyn-ares: remove redundant NULL check X-Git-Tag: curl-8_15_0~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05382f3e78bd302b00c82c1873f07747adbc3690;p=thirdparty%2Fcurl.git asyn-ares: remove redundant NULL check Closes #17720 --- diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 10f870a15a..4ea2e0724c 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -451,8 +451,7 @@ CURLcode Curl_async_await(struct Curl_easy *data, /* Operation complete, if the lookup was successful we now have the entry in the cache. */ data->state.async.done = TRUE; - if(entry) - *entry = data->state.async.dns; + *entry = data->state.async.dns; if(result) ares_cancel(ares->channel);