]> granicus.if.org Git - php/commitdiff
- Fix Windows build
authorSteph Fox <sfox@php.net>
Thu, 24 Apr 2008 16:03:40 +0000 (16:03 +0000)
committerSteph Fox <sfox@php.net>
Thu, 24 Apr 2008 16:03:40 +0000 (16:03 +0000)
ext/phar/util.c

index ba10c960ea7d075d8554f78b146e56e289303564..16065b633913f6daef30d444103d4b5cdd9af982 100644 (file)
@@ -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;