Skip to content

Commit a145b40

Browse files
committed
Fix uouv in password_needs_rehash() and password_hash()
1 parent 2053af6 commit a145b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/password.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,9 @@ PHP_FUNCTION(password_needs_rehash)
589589
const php_password_algo *old_algo, *new_algo;
590590
zend_string *hash;
591591
zend_string *new_algo_str;
592-
zend_long new_algo_long;
592+
zend_long new_algo_long = 0;
593593
bool new_algo_is_null;
594-
zend_array *options = 0;
594+
zend_array *options = NULL;
595595

596596
ZEND_PARSE_PARAMETERS_START(2, 3)
597597
Z_PARAM_STR(hash)
@@ -637,7 +637,7 @@ PHP_FUNCTION(password_hash)
637637
{
638638
zend_string *password, *digest = NULL;
639639
zend_string *algo_str;
640-
zend_long algo_long;
640+
zend_long algo_long = 0;
641641
bool algo_is_null;
642642
const php_password_algo *algo;
643643
zend_array *options = NULL;

0 commit comments

Comments
 (0)