mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-19 10:41:47 +00:00
Prevent file descriptor from unclosed
This commit is contained in:
@@ -395,7 +395,7 @@ int file_to_vector(const char *filename, Vector<CharArray> &arr) {
|
||||
size_t len = 0;
|
||||
ssize_t read;
|
||||
|
||||
FILE *fp = xfopen(filename, "r");
|
||||
FILE *fp = xfopen(filename, "re");
|
||||
if (fp == nullptr)
|
||||
return 1;
|
||||
|
||||
|
Reference in New Issue
Block a user