diff options
| author | liruncong <[email protected]> | 2018-09-11 23:36:01 +0800 |
|---|---|---|
| committer | liruncong <[email protected]> | 2018-09-11 23:36:01 +0800 |
| commit | ba20a00e19a231d404a8b13ed1005c76c2b7e812 (patch) | |
| tree | 9c9ed5376137faaf7717a3586ccd37a44675d3fe /components/libc/compilers/armlibc | |
| parent | b1bbf434a658dac17d984fd3373d63c7f151be99 (diff) | |
_sys_command_string返回值错误,no support时cmd为随机数据,可能导致c库初始化时在此函数返回处死循环或跑飞.
Diffstat (limited to 'components/libc/compilers/armlibc')
| -rw-r--r-- | components/libc/compilers/armlibc/stubs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index b9be260357..b292cd7629 100644 --- a/components/libc/compilers/armlibc/stubs.c +++ b/components/libc/compilers/armlibc/stubs.c @@ -249,7 +249,7 @@ int _sys_tmpnam(char *name, int fileno, unsigned maxlength) char *_sys_command_string(char *cmd, int len) { /* no support */ - return cmd; + return RT_NULL; } /* This function writes a character to the console. */ |
