From 000acf4b4923bdc438ebd7dce5b884f980877654 Mon Sep 17 00:00:00 2001 From: zhanglianghy Date: Thu, 11 Jul 2019 10:14:29 +0800 Subject: [PATCH] =?UTF-8?q?MOD=20aaa-12=20=E4=BC=98=E5=8C=96=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=80=BB=E8=BE=91=20SOL=20=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=80=BB=E8=BE=91=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=BA=EF=BC=9Azhangliang=20=E6=A3=80=E8=A7=86=E4=BA=BA?= =?UTF-8?q?=EF=BC=9Azhangliang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Platform/user/configm/config-test/configtest.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Platform/user/configm/config-test/configtest.c b/Platform/user/configm/config-test/configtest.c index 4d6c63a71..2d5cdf320 100644 --- a/Platform/user/configm/config-test/configtest.c +++ b/Platform/user/configm/config-test/configtest.c @@ -6,12 +6,19 @@ int main(int argc, char **argv) { - FILE *f = fopen("configtest","r+"); + FILE *f = NULL; char config_linebuf[512]; char* output = NULL; int output_len; ret_code code; + if(argc != 2 ) + { + printf("input error!\n"); + return EXIT_FAILURE; + } + + f = fopen("configtest","r+"); if(f == NULL) { printf("OPEN CONFIG test file FALID\n");