Skip to content

Commit

Permalink
Fix uninitialized vars
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Oct 23, 2017
1 parent 8f35685 commit 0e44c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/sodium/libsodium.c
Original file line number Diff line number Diff line change
Expand Up @@ -1935,7 +1935,7 @@ PHP_FUNCTION(sodium_crypto_pwhash_str_needs_rehash)
size_t hash_str_len;

if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "sll",
&hash_str, &hash_str_len) == FAILURE) {
&hash_str, &hash_str_len, &opslimit, &memlimit) == FAILURE) {
zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0);
return;
}
Expand Down

0 comments on commit 0e44c98

Please sign in to comment.