mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 19:40:47 -05: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