Staging
v0.8.1
v0.8.1
Revision 1d16229f3f5b91f2389c7c5c6425c5524c413651 authored by Miss Islington (bot) on 04 August 2020, 01:00:29 UTC, committed by GitHub on 04 August 2020, 01:00:29 UTC
On Windows, fix asyncio recv_into() return value when the socket/pipe is closed (BrokenPipeError): return 0 rather than an empty byte string (b''). (cherry picked from commit 602a971a2af3a685d625c912c400cadd452718b1) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent b6724be
strdup.c
/* strdup() replacement (from stdwin, if you must know) */
char *
strdup(const char *str)
{
if (str != NULL) {
char *copy = malloc(strlen(str) + 1);
if (copy != NULL)
return strcpy(copy, str);
}
return NULL;
}
Computing file changes ...