summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-19 16:28:04 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-19 16:28:04 +0200
commit4227b17d9339bf04d5bc1af4a589eabaaa46703c (patch)
tree956667b1fe56f0c11ec7af6c85345a88e4be796e /Python/strdup.c
parent65ab1a2a0f28cdc19d18a84dcccbe18fdf15d858 (diff)
parentb283473939e00f8ee3b773edf64b4c0098ff2e38 (diff)
downloadcpython-4227b17d9339bf04d5bc1af4a589eabaaa46703c.tar.gz
Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and
quotechar fields. Original patch by Vajrasky Kok.
Diffstat (limited to 'Python/strdup.c')
-rw-r--r--Python/strdup.c2
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);
}