Final(?) patch fix

This commit is contained in:
artdeell 2023-02-24 18:26:03 +03:00 committed by ArtDev
parent 1c68e6e2ba
commit 8886444557

View File

@ -60835,7 +60835,7 @@ index 5948302713..76755e98aa 100644
#endif #endif
+static bool read_so_path_from_maps(const char* so_name, char* buf) { +static bool read_so_path_from_maps(const char* so_name, char* buf) {
+ FILE *fp = fopen("/proc/self/maps", "r"); + FILE *fp = fopen("/proc/self/maps", "r");
+ assert(fp, "Failed to open /proc/self/maps"); +
+ if (!fp) { + if (!fp) {
+ return false; + return false;
+ } + }