diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-26 01:33:30 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-26 01:33:30 +0300 |
commit | cdef59b761d57045069f73d399313ea256431ac7 (patch) | |
tree | d21bea56f874517c6702961c5a6654725474e71f /Python/strdup.c | |
parent | 9a3c839867c75374dfc3ad1d36e34e61b17a009b (diff) | |
parent | 4e8edc666b9e76e4db18b97fdfa9ea342f5a49f2 (diff) | |
download | cpython-cdef59b761d57045069f73d399313ea256431ac7.tar.gz |
#18803: merge with 3.3.
Diffstat (limited to 'Python/strdup.c')
-rw-r--r-- | Python/strdup.c | 2 |
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); } |