Staging
v0.5.1
https://github.com/python/cpython
Revision a2cdbdf3bb26b3b28bd04af0b6520a5f8333ea03 authored by Brett Cannon on 10 June 2017, 00:02:18 UTC, committed by GitHub on 10 June 2017, 00:02:18 UTC
This will allow for centralized management of the Codecov config to prevent skew as well as easier management going forward.

Closes python/core-workflowGH-81.
(cherry picked from commit 11ffb4543bc000dea527bcc0417e2f8bda13790f)
1 parent 7f1cd72
Raw File
Tip revision: a2cdbdf3bb26b3b28bd04af0b6520a5f8333ea03 authored by Brett Cannon on 10 June 2017, 00:02:18 UTC
[3.5] Make codecov config on master the only config used (GH-2041) (GH-2053)
Tip revision: a2cdbdf
strdup.c
/* strdup() replacement (from stdwin, if you must know) */

#include "pgenheaders.h"

char *
strdup(const char *str)
{
	if (str != NULL) {
		char *copy = malloc(strlen(str) + 1);
		if (copy != NULL)
			return strcpy(copy, str);
	}
	return NULL;
}
back to top