From dae6c43c33ed2d29d6d7089958ad707759a48517 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 17 May 2018 13:04:46 +0200 Subject: Remove unneeded setting of errno after malloc failure The errno value has alread been set by malloc. --- resolv/res_send.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'resolv') diff --git a/resolv/res_send.c b/resolv/res_send.c index 9e95417..947ebf5 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -472,10 +472,7 @@ __res_context_send (struct resolv_context *ctx, sizeof (struct sockaddr_in6) - sizeof (struct sockaddr_in)); else - { - __set_errno (ENOMEM); - return -1; - } + return -1; } EXT(statp).nscount = statp->nscount; } -- cgit v1.1