Skip to content

Commit 9e521b4

Browse files
committed
[reset] fix arguments
1 parent 614b976 commit 9e521b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reset.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
PHP_FUNCTION(git_reset)
88
{
99
int result = 0, error = 0;
10-
zval *repo = NULL, *target = NULL, *reset_type = NULL;
10+
zval *repo = NULL, *target = NULL;
1111
php_git2_t *_repo = NULL, *_target = NULL;
12+
long reset_type = 0;
1213

1314
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
14-
"rr<git_reset_t>", &repo, &target, &reset_type) == FAILURE) {
15+
"rrl", &repo, &target, &reset_type) == FAILURE) {
1516
return;
1617
}
1718

0 commit comments

Comments
 (0)