fsstress: getcwd() return value fixes
authorAri Sundholm <ari@tuxera.com>
Wed, 20 Dec 2017 17:00:11 +0000 (19:00 +0200)
committerEryu Guan <eguan@redhat.com>
Sun, 24 Dec 2017 13:30:58 +0000 (21:30 +0800)
commitdb71085194be8e96d4d94156f4c88f47a747e395
treee6bdb4407bf1e2cac9c9ce3637a27cb053b99f67
parent6db67b725296e7a633c0a99e6b218695b95c6a01
fsstress: getcwd() return value fixes

Add a check for the return value of getcwd(). Fix another check
which mistakenly checks if the return value is less than zero
instead of checking whether the return value is NULL.

Signed-off-by: Ari Sundholm <ari@tuxera.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
ltp/fsstress.c