Skip to content

Commit 85fe49c

Browse files
committed
Merge branch 'PHP-7.2'
* PHP-7.2: sodium ext: If sodium_init() returns 1, this is fine.
2 parents f0f6ac6 + 3fff74a commit 85fe49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sodium/libsodium.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ PHP_MINIT_FUNCTION(sodium)
341341
{
342342
zend_class_entry ce;
343343

344-
if (sodium_init() != 0) {
344+
if (sodium_init() < 0) {
345345
zend_error(E_ERROR, "sodium_init()");
346346
}
347347

0 commit comments

Comments
 (0)