Properly handle return from getcwd.
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:05:30 +0000 (16:05 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:05:30 +0000 (16:05 -0500)
commitdc4582098947e7f4768c9a9841da2c47a0803d2d
tree07bdba7234e281ca3ba599271fcc8494daf2b14f
parentf76158def792b30973d21fd95aed52e96039532b
Properly handle return from getcwd.

* src/realpath.c (xrealpath): Is getcwd returns NULL, also return
NULL.  If we can't determine the cwd, then any relative path
processing fails.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/realpath.c