summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2016-05-19 17:00:32 +0000
committerEric Covener <covener@apache.org>2016-05-19 17:00:32 +0000
commit84a4af88b682886d52e75aec063b292ba6130ac2 (patch)
tree0958efb9d6e3277c7092f08900a6c2a1ce05d79f
parent5892b86a9882d9c6554e69ccf866d47a9eab1580 (diff)
downloadapr-84a4af88b682886d52e75aec063b292ba6130ac2.tar.gz
poll/unix/z_asio.c:271]: (style) Suspicious condition (assignment +
comparison); Clarify expression with parentheses. PR59582 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1744604 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poll/unix/z_asio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/poll/unix/z_asio.c b/poll/unix/z_asio.c
index 7e0fd89a5..6537d4909 100644
--- a/poll/unix/z_asio.c
+++ b/poll/unix/z_asio.c
@@ -268,9 +268,9 @@ static apr_status_t asio_pollset_create(apr_pollset_t *pollset,
if (flags & APR_POLLSET_THREADSAFE) {
#if APR_HAS_THREADS
- if (rv = apr_thread_mutex_create(&(priv->ring_lock),
+ if ((rv = apr_thread_mutex_create(&(priv->ring_lock),
APR_THREAD_MUTEX_DEFAULT,
- p) != APR_SUCCESS) {
+ p)) != APR_SUCCESS) {
DBG1(1, "apr_thread_mutex_create returned %d\n", rv);
pollset->p = NULL;
return rv;