summaryrefslogtreecommitdiff
path: root/ext/phar/util.c
diff options
context:
space:
mode:
authorSteph Fox <sfox@php.net>2008-04-24 16:03:40 +0000
committerSteph Fox <sfox@php.net>2008-04-24 16:03:40 +0000
commit28459132cbd9258c4214810849949ae0234d4fe5 (patch)
tree04689cdb25ce0e76656eb1a03c6cc8a78d4794a5 /ext/phar/util.c
parent00b006ce749acc72ccec1203773a2d619cd5ed5c (diff)
downloadphp-git-28459132cbd9258c4214810849949ae0234d4fe5.tar.gz
- Fix Windows build
Diffstat (limited to 'ext/phar/util.c')
-rw-r--r--ext/phar/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/util.c b/ext/phar/util.c
index ba10c960ea..16065b6339 100644
--- a/ext/phar/util.c
+++ b/ext/phar/util.c
@@ -28,7 +28,7 @@ extern php_stream_wrapper php_stream_phar_wrapper;
/* for links to relative location, prepend cwd of the entry */
static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC)
{
- char *tmp, *ret, *p;
+ char *tmp, *p, *ret = NULL;
if (!entry->link) {
return NULL;
}
@@ -50,7 +50,7 @@ static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC)
phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_DC)
{
phar_entry_info *link_entry;
- char *link = phar_get_link_location(entry);
+ char *link = phar_get_link_location(entry TSRMLS_CC);
if (!entry->link) {
return entry;