/* 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;
}
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;