diff options
Diffstat (limited to 'fixincludes/server.c')
-rw-r--r-- | fixincludes/server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fixincludes/server.c b/fixincludes/server.c index 1e50efc9faa..f1b93a0c388 100644 --- a/fixincludes/server.c +++ b/fixincludes/server.c @@ -192,7 +192,8 @@ server_setup (void) fputs ("trap : 1\n", server_pair.pf_write); fflush (server_pair.pf_write); - getcwd (buff, MAXPATHLEN + 1); + if (getcwd (buff, MAXPATHLEN + 1) == NULL) + buff[0] = 0; p_cur_dir = xstrdup (buff); } |