[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);
|
printf("setbuf test:%s\n",test_data);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
__exit:
|
|
||||||
fclose(stream);
|
fclose(stream);
|
||||||
|
__exit:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user