]> granicus.if.org Git - php/commitdiff
Fixed bug #41063 (chdir doesn't like root paths).
authorDmitry Stogov <dmitry@php.net>
Thu, 12 Apr 2007 15:29:10 +0000 (15:29 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 12 Apr 2007 15:29:10 +0000 (15:29 +0000)
TSRM/tsrm_virtual_cwd.c

index 75055fa8819fbbc59691df33fdf116d33558cc6b..d782065cbda00c2adf04e275d16954853da6219e 100644 (file)
@@ -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);