diff options
Diffstat (limited to 'ext/phar/util.c')
| -rw-r--r-- | ext/phar/util.c | 4 |
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; |
