summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2014-01-21 13:50:13 -0600
committerZachary Ware <zachary.ware@gmail.com>2014-01-21 13:50:13 -0600
commitff1769802fc3ac342e45d4967eeece028184fe6c (patch)
treefd08ccf458c45f70ccb09547d28826a7071c73b3 /Python/strdup.c
parent77772c41204d33ca7ccb96908d2275a1d2711aa6 (diff)
parente0833fb5e338ab5d63f7ec2d15bdb65b3dc99e6d (diff)
downloadcpython-ff1769802fc3ac342e45d4967eeece028184fe6c.tar.gz
Issue #20301: 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);
}