diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-09-29 19:09:49 -0400 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-09-29 19:09:49 -0400 |
commit | 0c32cdaea9919461d8ba822840d04715cf28105f (patch) | |
tree | 1f8dbfa91bff6bad09cb42e317d68eae3128868f /Python/strdup.c | |
parent | 3b510d252e5097e26d82ac194ebdb31ef351f779 (diff) | |
parent | 8b3e497101bec628e8fb7a14dd85a8542545e5e9 (diff) | |
download | cpython-0c32cdaea9919461d8ba822840d04715cf28105f.tar.gz |
merge 3.3 (closes #22519)
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); } |