Skip to content

Commit 0382a64

Browse files
committed
remove unused assignment
1 parent ac82a34 commit 0382a64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Zend/zend_virtual_cwd.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
921921
wchar_t * reparsetarget;
922922
BOOL isVolume = FALSE;
923923
char *printname = NULL, *substitutename = NULL;
924-
int printname_len, substitutename_len;
924+
int substitutename_len;
925925
int substitutename_off = 0;
926926

927927
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
956956

957957
if(pbuffer->ReparseTag == IO_REPARSE_TAG_SYMLINK) {
958958
reparsetarget = pbuffer->SymbolicLinkReparseBuffer.ReparseTarget;
959-
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
960959
isabsolute = (pbuffer->SymbolicLinkReparseBuffer.Flags == 0) ? 1 : 0;
961960
printname = php_win32_ioutil_w_to_any(reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR));
962961
if (!printname) {
@@ -979,7 +978,6 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
979978
else if(pbuffer->ReparseTag == IO_REPARSE_TAG_MOUNT_POINT) {
980979
isabsolute = 1;
981980
reparsetarget = pbuffer->MountPointReparseBuffer.ReparseTarget;
982-
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
983981
printname = php_win32_ioutil_w_to_any(reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR));
984982
if (!printname) {
985983
free_alloca(pbuffer, use_heap_large);

0 commit comments

Comments
 (0)