forcing variable assignment in condition
diff --git a/ChangeLog b/ChangeLog
index 6ed31e1..6d9e7ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2020-10-04 Massimo Manghi <mxmanghi@apache.org>
+ * src/mod_rivet_ng/mod_rivet.c: forcing variable assignment in condition
+
2020-10-03 Massimo Manghi <mxmanghi@apache.org>
* src/mod_rivet_ng/mod_rivet.c: Documenting the Rivet_SeekMPMBridge function
diff --git a/src/mod_rivet_ng/mod_rivet.c b/src/mod_rivet_ng/mod_rivet.c
index 7d1defc..a7b6681 100644
--- a/src/mod_rivet_ng/mod_rivet.c
+++ b/src/mod_rivet_ng/mod_rivet.c
@@ -109,7 +109,7 @@
if (apr_env_get (&mpm_bridge_path,"RIVET_MPM_BRIDGE",pool) == APR_SUCCESS)
{
- if (apr_ret = apr_stat(&finfo,mpm_bridge_path,APR_FINFO_MIN,pool) != APR_SUCCESS)
+ if ((apr_ret = apr_stat(&finfo,mpm_bridge_path,APR_FINFO_MIN,pool)) != APR_SUCCESS)
{
ap_log_perror(APLOG_MARK,APLOG_ERR,apr_ret,pool,
MODNAME ": MPM bridge %s not found", module_globals->mpm_bridge);