diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 01a02d375..828a88872 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -1830,7 +1830,8 @@ static void setpwd(const char *val, int setold) | |||
1830 | getpwd(); | 1830 | getpwd(); |
1831 | else | 1831 | else |
1832 | curdir = simplify_path(val); | 1832 | curdir = simplify_path(val); |
1833 | free(cated); | 1833 | if (cated) |
1834 | free(cated); | ||
1834 | INTON; | 1835 | INTON; |
1835 | setvar("PWD", curdir, VEXPORT); | 1836 | setvar("PWD", curdir, VEXPORT); |
1836 | } | 1837 | } |