summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/sockets/sockets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index c7be37a98e..998a26b82c 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -474,7 +474,7 @@ PHP_MINFO_FUNCTION(sockets)
/* {{{ PHP_RINIT_FUNCTION */
PHP_RINIT_FUNCTION(sockets)
{
- if (SOCKETS_G(strerror_buf) = emalloc(16384))
+ if ((SOCKETS_G(strerror_buf) = emalloc(16384)))
return SUCCESS;
return FAILURE;