File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -858,6 +858,7 @@ void Test_iniparser_dump(CuTest *tc)
858
858
dictionary * dic ;
859
859
FILE * fp = NULL ;
860
860
char buff [255 ];
861
+ char * ret ;
861
862
862
863
/*loading old.ini*/
863
864
dic = iniparser_load (OLD_INI_PATH );
@@ -887,20 +888,23 @@ void Test_iniparser_dump(CuTest *tc)
887
888
printf ("error: test.txt is not exist" );
888
889
exit (-1 );
889
890
}
890
- fgets (buff ,100 ,fp );
891
+ ret = fgets (buff ,100 ,fp );
892
+ (void )ret ;
891
893
/*remove '\n'*/
892
894
if (buff [strlen (buff )- 1 ] == '\n' )
893
895
{
894
896
buff [strlen (buff )- 1 ] = '\0' ;
895
897
}
896
898
CuAssertStrEquals (tc ,"[section]=UNDEF" ,buff );
897
- fgets (buff ,100 ,fp );
899
+ ret = fgets (buff ,100 ,fp );
900
+ (void )ret ;
898
901
if (buff [strlen (buff )- 1 ] == '\n' )
899
902
{
900
903
buff [strlen (buff )- 1 ] = '\0' ;
901
904
}
902
905
CuAssertStrEquals (tc ,"[section:key_01]=[hello world]" ,buff );
903
- fgets (buff ,100 ,fp );
906
+ ret = fgets (buff ,100 ,fp );
907
+ (void )ret ;
904
908
if (buff [strlen (buff )- 1 ] == '\n' )
905
909
{
906
910
buff [strlen (buff )- 1 ] = '\0' ;
You can’t perform that action at this time.
0 commit comments