diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-25 21:24:48 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-25 21:24:48 -0500 |
commit | 2ac1cd05153c0815ec6a5ad5ed08860758c6ee20 (patch) | |
tree | 3da50b196fbaa902881864783df9d54d63da0951 /Python/strdup.c | |
parent | 4d7a8e298cb5786fd08b044974c42856b2ddfa2d (diff) | |
parent | 05f5572e8d38267d23e4417ccf6f440f3f781836 (diff) | |
download | cpython-2ac1cd05153c0815ec6a5ad5ed08860758c6ee20.tar.gz |
merge 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); } |