Issue #18722: Remove uses of the "register" keyword in C code.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user