summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-08 18:16:18 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-08 18:16:18 +0200
commitf04421b4a0cd3b0f375bc67ac0102a8b6b7edc6e (patch)
tree4a9ea0b2010fa72806351fb7f4dec90ba7b4ea9d /Python/strdup.c
parent23a45a46902515a466c23c541b0ebb5c7308c3c4 (diff)
parentebce63d957d938041ce47c8b225e6bd718dcf421 (diff)
downloadcpython-f04421b4a0cd3b0f375bc67ac0102a8b6b7edc6e.tar.gz
Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, and
test_statistics when python is run with -OO.
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);
}