Browse Source

Fix uninitialized vars

pull/2876/head
Anatol Belski 9 years ago
parent
commit
0e44c980f9
  1. 2
      ext/sodium/libsodium.c

2
ext/sodium/libsodium.c

@ -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;
}

Loading…
Cancel
Save