[HUST CSE][examples]Fix undefined behavior 'fclose(NULL)' (#7513)
This commit is contained in:
parent
12a4bb154a
commit
efc3ced31d
|
@ -23,8 +23,8 @@ static int setbuf_entry(void)
|
|||
printf("setbuf test:%s\n",test_data);
|
||||
ret = -1;
|
||||
}
|
||||
__exit:
|
||||
fclose(stream);
|
||||
__exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue