Avoid crashing on physfs failure
authoralfadur
Tue, 07 Sep 2021 01:45:16 +0300
changeset 15839 0defc1d3261d
parent 15837 a803bfa3f56c
child 15840 0c21cdbc5207
Avoid crashing on physfs failure
misc/libphyslayer/hwpacksmounter.c
--- a/misc/libphyslayer/hwpacksmounter.c	Wed Jul 14 23:50:44 2021 +0200
+++ b/misc/libphyslayer/hwpacksmounter.c	Tue Sep 07 01:45:16 2021 +0300
@@ -8,6 +8,8 @@
 {
     char ** filesList = PHYSFS_enumerateFiles("/");
     char **i;
+    
+    if (!filesList) return;
 
     for (i = filesList; *i != NULL; i++)
     {