Skip to content

Commit 5f0b526

Browse files
committed
fix compile error
1 parent 4eabc43 commit 5f0b526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blob.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ PHP_FUNCTION(git_blob_create_fromworkdir)
126126
PHP_FUNCTION(git_blob_filtered_content)
127127
{
128128
php_git2_t *result = NULL, *_blob = NULL;
129-
git_buf out = NULL;
129+
git_buf out = {0};
130130
zval *blob = NULL;
131131
char *as_path = NULL;
132132
int as_path_len = 0, error = 0;
@@ -142,7 +142,7 @@ PHP_FUNCTION(git_blob_filtered_content)
142142
if (php_git2_check_error(error, "git_blob_filtered_content" TSRMLS_CC)) {
143143
RETURN_FALSE;
144144
}
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)) {
146146
RETURN_FALSE;
147147
}
148148
ZVAL_RESOURCE(return_value, GIT2_RVAL_P(result));

0 commit comments

Comments
 (0)