Explorar o código

Merge pull request #1799 from liruncong/dev0911

修正_sys_command_string返回值
Bernard Xiong %!s(int64=7) %!d(string=hai) anos
pai
achega
471d25ce49
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/libc/compilers/armlibc/stubs.c

+ 1 - 1
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)
 char *_sys_command_string(char *cmd, int len)
 {
 {
     /* no support */
     /* no support */
-    return cmd;
+    return RT_NULL;
 }
 }
 
 
 /* This function writes a character to the console. */
 /* This function writes a character to the console. */