Check return value from xgetcwd
commit66162927ebdfe9dd4ef570a132663fd76217952f
authorSergey Poznyakoff <gray@gnu.org>
Sun, 3 Mar 2019 07:02:20 +0000 (3 09:02 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Sun, 3 Mar 2019 07:02:20 +0000 (3 09:02 +0200)
treece7e490306109daae47be82b8b8b768da0b9fd41
parent44cfdfb8b61e2b84b37a61c18a83ef0916e9a0d2
Check return value from xgetcwd

* src/misc.c (chdir_arg,tar_getcdpath): Check for non-NULL
return from xgetcwd. The function returns NULL for any
error originating from getcwd.
src/misc.c