diff --git a/umount.c b/umount.c index efe7d84..429ada1 100644 --- a/umount.c +++ b/umount.c @@ -74,6 +74,8 @@ umountall(int flags) if (!mntdirs) eprintf("realloc:"); mntdirs[len - 1] = strdup(me->mnt_dir); + if (!mntdirs[len - 1]) + eprintf("strdup:"); } endmntent(fp); while (--len >= 0) {