ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit 861e16ac1763786dda1ce459acd33e4d9c5d6e99
parent 6ef8c718e15fa2e6c90cf2a6266850fa1c46727e
Author: sin <sin@2f30.org>
Date:   Sat, 15 Mar 2014 18:48:01 +0000

Check strdup() for failure

Diffstat:
Mumount.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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) {