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

This commit is contained in:
Liu Haoyi
2023-05-17 05:55:18 +08:00
committed by GitHub
parent 12a4bb154a
commit efc3ced31d

View File

@@ -23,8 +23,8 @@ static int setbuf_entry(void)
printf("setbuf test:%s\n",test_data);
ret = -1;
}
__exit:
fclose(stream);
__exit:
return ret;
}