X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/376e8ae431ea3c23ff1940f66be6eb8f7ff2f1fe..f053f0b49f317d31b337fe8d8b07612671831a52:/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));