X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/bc4927948a1b01bf2ae8b952dfd2639c1f929f00..c5755ce22669bc863d6319783cc9d5d38a5bdbcc:/uip/mhstore.c diff --git a/uip/mhstore.c b/uip/mhstore.c index 98e62396..81d30a1b 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -266,7 +266,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));