summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2014-09-17 13:19:01 +0800
committerSenthil Kumaran <senthil@uthcode.com>2014-09-17 13:19:01 +0800
commitebf0eb89938ef3da56660bb4b8e043d73311d5f4 (patch)
treeceb9977286425825740876df5d7349e19f131c38 /Python/strdup.c
parent8f9f5f2448be5f6d261011e2cf16ce1d9e733fc4 (diff)
parent7512258fade04669b3fa38b313372fbd2c04cf47 (diff)
downloadcpython-ebf0eb89938ef3da56660bb4b8e043d73311d5f4.tar.gz
Merge from 3.3
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
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);
}