diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-06-05 23:22:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-06-05 23:22:07 +0200 |
commit | 860cae1cec85aeb06668a2b071727c43869acf15 (patch) | |
tree | 8f7b62b69f4a7d3340902178927bbc3f9d24cc3e /src/workshop.c | |
parent | 945e2dbb633ed29b697a8d4eea51672e3c11143b (diff) | |
download | vim-git-860cae1cec85aeb06668a2b071727c43869acf15.tar.gz |
Add the conceal patch from Vince Negri.
Diffstat (limited to 'src/workshop.c')
-rw-r--r-- | src/workshop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/workshop.c b/src/workshop.c index 393e3d151..cd98914bc 100644 --- a/src/workshop.c +++ b/src/workshop.c @@ -1826,7 +1826,8 @@ findYourself( else if (*argv0 == '.' || strchr(argv0, '/')) { runpath = (char *) malloc(MAXPATHLEN); - (void)getcwd(runpath, MAXPATHLEN); + if (getcwd(runpath, MAXPATHLEN) == NULL) + runpath[0] = NUL; strcat(runpath, "/"); strcat(runpath, argv0); } |