diff --git a/fs/fs.c b/fs/fs.c index 88f0b14..5135112 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -191,7 +191,7 @@ * with an additional stat() call. */ fsdev = get_fsdevice_by_path(outpath); - if (!fsdev->driver->readlink) + if (!fsdev || !fsdev->driver->readlink) continue; ret = __lstat(outpath, &s);