diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-08-13 18:18:52 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-08-13 18:18:52 (GMT) |
commit | 9ed5f2726607c57c894af24159b6a7ccf660da7f (patch) | |
tree | e1b779ecf1afd5d86eb955ed44b476f2d88dab10 /Python/strdup.c | |
parent | 9eaa3e6732debf6a633f44cf3c82a0eaf8879a51 (diff) | |
download | cpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.zip cpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.tar.gz cpython-9ed5f2726607c57c894af24159b6a7ccf660da7f.tar.bz2 |
Issue #18722: Remove uses of the "register" keyword in C code.
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 20187e0..769d3db 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); } |