From: Steph Fox Date: Thu, 24 Apr 2008 16:03:40 +0000 (+0000) Subject: - Fix Windows build X-Git-Tag: RELEASE_2_0_0b1~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28459132cbd9258c4214810849949ae0234d4fe5;p=php - Fix Windows build --- 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;