mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
Remove unneeded setting of errno after malloc failure
The errno value has alread been set by malloc.
This commit is contained in:
parent
0068c08588
commit
dae6c43c33
@ -1,3 +1,8 @@
|
|||||||
|
2018-05-17 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* resolv/res_send.c (__res_context_send): Don't set errno when
|
||||||
|
returing error after malloc failure.
|
||||||
|
|
||||||
2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
|
2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* nptl/allocatestack.c (allocate_stack): Remove the
|
* nptl/allocatestack.c (allocate_stack): Remove the
|
||||||
|
@ -472,10 +472,7 @@ __res_context_send (struct resolv_context *ctx,
|
|||||||
sizeof (struct sockaddr_in6)
|
sizeof (struct sockaddr_in6)
|
||||||
- sizeof (struct sockaddr_in));
|
- sizeof (struct sockaddr_in));
|
||||||
else
|
else
|
||||||
{
|
return -1;
|
||||||
__set_errno (ENOMEM);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
EXT(statp).nscount = statp->nscount;
|
EXT(statp).nscount = statp->nscount;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user