Explorar o código

[HUST CSE][examples]Fix undefined behavior 'fclose(NULL)' (#7513)

Liu Haoyi %!s(int64=2) %!d(string=hai) anos
pai
achega
efc3ced31d

+ 1 - 1
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;
 }