You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2018/05/21 15:52:58 UTC

qpid-dispatch git commit: DISPATCH-990: Fix release build.

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 5fdcf8b92 -> 027879709


DISPATCH-990: Fix release build.

A variable was used only in an assert and was unused in release.


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/02787970
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/02787970
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/02787970

Branch: refs/heads/master
Commit: 027879709f5ab20cfc4af23b7c15f379d05d34fa
Parents: 5fdcf8b
Author: Chuck Rolke <cr...@redhat.com>
Authored: Mon May 21 10:42:53 2018 -0400
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Mon May 21 10:42:53 2018 -0400

----------------------------------------------------------------------
 src/policy.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/02787970/src/policy.c
----------------------------------------------------------------------
diff --git a/src/policy.c b/src/policy.c
index 697ec1b..b1a231d 100644
--- a/src/policy.c
+++ b/src/policy.c
@@ -840,7 +840,9 @@ bool qd_policy_host_pattern_add(qd_policy_t *policy, char *hostPattern)
     void *oldp = qd_parse_tree_add_pattern_str(policy->hostname_tree, hostPattern, hostPattern);
     if (oldp) {
         void *recovered = qd_parse_tree_add_pattern_str(policy->hostname_tree, (char *)oldp, oldp);
-        assert (recovered);
+        if (!recovered) {
+            assert (recovered);
+        }
     }
     sys_mutex_unlock(policy->tree_lock);
     if (oldp)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org