diff options
author | Greg Beaver <cellog@php.net> | 2008-08-31 06:09:37 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-08-31 06:09:37 +0000 |
commit | 5c3749021a96309be0f02e04bd8bb6f97c892e6d (patch) | |
tree | 0ef1c7b7a20ff0b54f66b4091742b1b4524112f1 /ext/phar/func_interceptors.c | |
parent | a7da5249e24b54bd78e8fa9b1a13085d2bde331d (diff) | |
download | php-git-5c3749021a96309be0f02e04bd8bb6f97c892e6d.tar.gz |
remove unused variables, merge from pecl/phar
Diffstat (limited to 'ext/phar/func_interceptors.c')
-rw-r--r-- | ext/phar/func_interceptors.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index 0c9811aaa4..80d4312bd2 100644 --- a/ext/phar/func_interceptors.c +++ b/ext/phar/func_interceptors.c @@ -681,16 +681,12 @@ splitted: #endif goto statme_baby; } else { - char *save, *save2, *actual; - int save_len, save2_len, actual_len; + char *save; + int save_len; notfound: save = PHAR_G(cwd); - save2 = entry; - actual = entry[0] == '/' ? (entry + 1) : entry; save_len = PHAR_G(cwd_len); - save2_len = entry_len; - actual_len = entry[0] == '/' ? (entry_len - 1) : entry_len; /* this file is not in the current directory, use the original path */ entry = estrndup(filename, filename_length); entry_len = filename_length; @@ -702,7 +698,6 @@ notfound: PHAR_G(cwd) = save; PHAR_G(cwd_len) = save_len; efree(entry); - efree(save2); if (IS_EXISTS_CHECK(type)) { efree(arch); RETURN_TRUE; @@ -713,7 +708,6 @@ notfound: PHAR_G(cwd) = save; PHAR_G(cwd_len) = save_len; efree(entry); - efree(save2); efree(arch); if (IS_EXISTS_CHECK(type)) { RETURN_TRUE; @@ -735,7 +729,6 @@ notfound: PHAR_G(cwd) = save; PHAR_G(cwd_len) = save_len; efree(entry); - efree(save2); efree(arch); /* Error Occured */ if (!IS_EXISTS_CHECK(type)) { |