summaryrefslogtreecommitdiff
path: root/TSRM/tsrm_virtual_cwd.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-04-12 15:29:10 +0000
committerDmitry Stogov <dmitry@php.net>2007-04-12 15:29:10 +0000
commitc878774f2e2ff70a18f4c8a2be4693f22f18ebee (patch)
tree21f0a346ae28f65c105f4e3a2d195de3527e0332 /TSRM/tsrm_virtual_cwd.c
parent77e3b997264777317bf4be8ec84f8df04a111737 (diff)
downloadphp-git-c878774f2e2ff70a18f4c8a2be4693f22f18ebee.tar.gz
Fixed bug #41063 (chdir doesn't like root paths).
Diffstat (limited to 'TSRM/tsrm_virtual_cwd.c')
-rw-r--r--TSRM/tsrm_virtual_cwd.c1
1 files changed, 1 insertions, 0 deletions
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);