File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ PHP_FUNCTION(git_blob_create_fromworkdir)
126
126
PHP_FUNCTION (git_blob_filtered_content )
127
127
{
128
128
php_git2_t * result = NULL , * _blob = NULL ;
129
- git_buf out = NULL ;
129
+ git_buf out = { 0 } ;
130
130
zval * blob = NULL ;
131
131
char * as_path = NULL ;
132
132
int as_path_len = 0 , error = 0 ;
@@ -142,7 +142,7 @@ PHP_FUNCTION(git_blob_filtered_content)
142
142
if (php_git2_check_error (error , "git_blob_filtered_content" TSRMLS_CC )) {
143
143
RETURN_FALSE ;
144
144
}
145
- if (php_git2_make_resource (& result , PHP_GIT2_TYPE_BUF , out , 1 TSRMLS_CC )) {
145
+ if (php_git2_make_resource (& result , PHP_GIT2_TYPE_BUF , & out , 1 TSRMLS_CC )) {
146
146
RETURN_FALSE ;
147
147
}
148
148
ZVAL_RESOURCE (return_value , GIT2_RVAL_P (result ));
You can’t perform that action at this time.
0 commit comments