X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/376e8ae431ea3c23ff1940f66be6eb8f7ff2f1fe..39a9d9d85d0f2289d8c1257251311b7cf959c700:/uip/mhn.c diff --git a/uip/mhn.c b/uip/mhn.c index a3f10305..2867f98a 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -370,7 +370,7 @@ do_cache: /* * Cache the current directory before we do any chdirs()'s. */ - cwd = add(pwd(), NULL); + cwd = mh_xstrdup(pwd()); if (!context_find ("path")) free (path ("./", TFOLDER));