diff options
| author | Liu Haoyi <[email protected]> | 2023-05-17 05:55:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-16 17:55:18 -0400 |
| commit | efc3ced31d33dc83ceb74544eb2f3e72b54e9ac8 (patch) | |
| tree | 5ff0a26475833927bfa337672baa1e9c32873058 /examples/utest/testcases/posix/stdio_h | |
| parent | 12a4bb154a21c5628fb6c81986b595f93bcf02ea (diff) | |
[HUST CSE][examples]Fix undefined behavior 'fclose(NULL)' (#7513)
Diffstat (limited to 'examples/utest/testcases/posix/stdio_h')
| -rw-r--r-- | examples/utest/testcases/posix/stdio_h/functions/setbuf_tc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/utest/testcases/posix/stdio_h/functions/setbuf_tc.c b/examples/utest/testcases/posix/stdio_h/functions/setbuf_tc.c index 0eb25e9378..69fe5de615 100644 --- a/examples/utest/testcases/posix/stdio_h/functions/setbuf_tc.c +++ b/examples/utest/testcases/posix/stdio_h/functions/setbuf_tc.c @@ -23,8 +23,8 @@ static int setbuf_entry(void) printf("setbuf test:%s\n",test_data); ret = -1; } -__exit: fclose(stream); +__exit: return ret; } |
