commit | 598ceae876ff4a23072e59945597e945583de4ab | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Nov 28 17:56:10 2017 +0200 |
committer | GitHub <noreply@github.com> | Tue Nov 28 17:56:10 2017 +0200 |
tree | a7c0c1380c40bda01c70b8bd40ba47d1b2f6d54a | |
parent | 08d2b86a1058b733bb7f1ae2b55818dd9687d21c [diff] [blame] |
bpo-32150: Expand tabs to spaces in C files. (#4583)
diff --git a/Python/strdup.c b/Python/strdup.c index 769d3db..99dc774 100644 --- a/Python/strdup.c +++ b/Python/strdup.c
@@ -5,10 +5,10 @@ char * strdup(const char *str) { - if (str != NULL) { - char *copy = malloc(strlen(str) + 1); - if (copy != NULL) - return strcpy(copy, str); - } - return NULL; + if (str != NULL) { + char *copy = malloc(strlen(str) + 1); + if (copy != NULL) + return strcpy(copy, str); + } + return NULL; }