From c878774f2e2ff70a18f4c8a2be4693f22f18ebee Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 12 Apr 2007 15:29:10 +0000 Subject: [PATCH] Fixed bug #41063 (chdir doesn't like root paths). --- TSRM/tsrm_virtual_cwd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 75055fa881..d782065cbd 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -567,6 +567,7 @@ no_realpath: CWD_STATE_COPY(&old_state, state); #ifdef TSRM_WIN32 + ret = 0; is_unc = 0; if (path_length >= 2 && path[1] == ':') { state->cwd = (char *) realloc(state->cwd, 2 + 1); -- 2.50.1