瀏覽代碼

add a default parameter to function call.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1187 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 14 年之前
父節點
當前提交
f1a255b4be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/finsh/finsh_ops.c

+ 1 - 1
components/finsh/finsh_ops.c

@@ -451,7 +451,7 @@ void OP_call()
 	switch (parameters)
 	{
 	case 0:
-		r = f();
+		r = f(0);
 		break;
 
 	case 1: