diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-06-27 13:56:46 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-06-27 13:56:46 -0500 |
commit | 5942fb553b4d2bed2f760e87bf8fab8111eb3eed (patch) | |
tree | 4a74a687f79c320dffd41be6d215349d5bcc750e /Python/strdup.c | |
parent | 765145f23b442f5f41273ca404d7771d8cb73a7f (diff) | |
parent | 01d6a2372715e75c665320407bd1cf27be7fc94d (diff) | |
download | cpython-5942fb553b4d2bed2f760e87bf8fab8111eb3eed.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); } |