mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
This commit is contained in:
@@ -1344,7 +1344,7 @@ DEF_CONSOLE_CMD(ConAlias)
|
||||
IConsoleAliasRegister(argv[1], argv[2]);
|
||||
} else {
|
||||
free(alias->cmdline);
|
||||
alias->cmdline = strdup(argv[2]);
|
||||
alias->cmdline = stredup(argv[2]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user