[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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