aboutsummaryrefslogtreecommitdiffstats
path: root/enabspath.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-04-13 11:34:43 +0200
committerMattias Andrée <maandree@kth.se>2024-04-13 11:34:43 +0200
commit53b8e053312ff1753e5b243060716d2612355f16 (patch)
tree081da1044c3bcdc292532a94b4c2bb78c9be4d68 /enabspath.c
parentAdd -lm (diff)
downloadlibsimple-53b8e053312ff1753e5b243060716d2612355f16.tar.gz
libsimple-53b8e053312ff1753e5b243060716d2612355f16.tar.bz2
libsimple-53b8e053312ff1753e5b243060716d2612355f16.tar.xz
libsimple_abspath: accept NULL for cwd
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'enabspath.c')
-rw-r--r--enabspath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enabspath.c b/enabspath.c
index 039144e..528f9a9 100644
--- a/enabspath.c
+++ b/enabspath.c
@@ -8,7 +8,7 @@ libsimple_enabspath(int status, const char *path, const char *relto)
{
char *ret = libsimple_abspath(path, relto);
if (!ret)
- libsimple_enprintf(status, "libsimple_abspath %s %s:", path, relto);
+ libsimple_enprintf(status, "libsimple_abspath %s %s:", path, relto ? relto : "NULL");
return ret;
}