summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-08-26 01:33:30 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2013-08-26 01:33:30 +0300
commitcdef59b761d57045069f73d399313ea256431ac7 (patch)
treed21bea56f874517c6702961c5a6654725474e71f /Python/strdup.c
parent9a3c839867c75374dfc3ad1d36e34e61b17a009b (diff)
parent4e8edc666b9e76e4db18b97fdfa9ea342f5a49f2 (diff)
downloadcpython-cdef59b761d57045069f73d399313ea256431ac7.tar.gz
#18803: merge with 3.3.
Diffstat (limited to 'Python/strdup.c')
-rw-r--r--Python/strdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/strdup.c b/Python/strdup.c
index 20187e0f0a..769d3db130 100644
--- a/Python/strdup.c
+++ b/Python/strdup.c
@@ -6,7 +6,7 @@ char *
strdup(const char *str)
{
if (str != NULL) {
- register char *copy = malloc(strlen(str) + 1);
+ char *copy = malloc(strlen(str) + 1);
if (copy != NULL)
return strcpy(copy, str);
}