Don't die if fail to get root directory, from Ben Boeckel.

This commit is contained in:
Nicholas Marriott 2012-02-06 17:29:29 +00:00
parent 3f49137f90
commit 67949de0a1

1
cmd.c
View File

@ -1309,6 +1309,7 @@ cmd_get_default_path(struct cmd_ctx *ctx, const char *cwd)
else else
return (s->cwd); return (s->cwd);
skip = 0; skip = 0;
if (root != NULL)
goto complete_path; goto complete_path;
} }