1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Remove unneeded setting of errno after malloc failure

The errno value has alread been set by malloc.
This commit is contained in:
Andreas Schwab
2018-05-17 13:04:46 +02:00
parent 0068c08588
commit dae6c43c33
2 changed files with 6 additions and 4 deletions

View File

@ -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;
}