netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=4acdba7ad690e8909c1f3d882fa8ec10864e5514
commit 4acdba7ad690e8909c1f3d882fa8ec10864e5514 Author: Alastair Poole <alastair.po...@int6.co.uk> Date: Sun Sep 8 22:10:56 2019 +0100 disks: Check fopen return value. --- src/disks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/disks.c b/src/disks.c index 607d2b6..5b0afbc 100644 --- a/src/disks.c +++ b/src/disks.c @@ -50,6 +50,9 @@ disk_mount_point_get(const char *path) char *start, *end; FILE *f = fopen("/proc/mounts", "r"); + if (!f) + return NULL; + while ((fgets(buf, sizeof(buf), f)) != NULL) { start = &buf[0]; --