]> granicus.if.org Git - php/commitdiff
remove unused assignment
authorAnatol Belski <ab@php.net>
Thu, 1 Sep 2016 20:36:03 +0000 (22:36 +0200)
committerAnatol Belski <ab@php.net>
Thu, 1 Sep 2016 21:45:31 +0000 (23:45 +0200)
Zend/zend_virtual_cwd.c

index be2dd0da57390b0c4c6d685c9aced26162bd01ac..09b9137ce444b6d03b03b4fb0cfd524eb070512d 100644 (file)
@@ -921,7 +921,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
                        wchar_t * reparsetarget;
                        BOOL isVolume = FALSE;
                        char *printname = NULL, *substitutename = NULL;
-                       int printname_len, substitutename_len;
+                       int substitutename_len;
                        int substitutename_off = 0;
 
                        if(++(*ll) > LINK_MAX) {
@@ -956,7 +956,6 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
 
                        if(pbuffer->ReparseTag == IO_REPARSE_TAG_SYMLINK) {
                                reparsetarget = pbuffer->SymbolicLinkReparseBuffer.ReparseTarget;
-                               printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
                                isabsolute = (pbuffer->SymbolicLinkReparseBuffer.Flags == 0) ? 1 : 0;
                                printname = php_win32_ioutil_w_to_any(reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset  / sizeof(WCHAR));
                                if (!printname) {
@@ -979,7 +978,6 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
                        else if(pbuffer->ReparseTag == IO_REPARSE_TAG_MOUNT_POINT) {
                                isabsolute = 1;
                                reparsetarget = pbuffer->MountPointReparseBuffer.ReparseTarget;
-                               printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
                                printname = php_win32_ioutil_w_to_any(reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset  / sizeof(WCHAR));
                                if (!printname) {
                                        free_alloca(pbuffer, use_heap_large);