You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2017/03/03 21:20:27 UTC
qpid-dispatch git commit: DISPATCH-615 - Return proper boolean in
qd_entity_has() function
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 3db5c309a -> a333a5039
DISPATCH-615 - Return proper boolean in qd_entity_has() function
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/a333a503
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/a333a503
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/a333a503
Branch: refs/heads/master
Commit: a333a5039eb3a709e279f7fda6a73c2a358aa715
Parents: 3db5c30
Author: Ganesh Murthy <gm...@redhat.com>
Authored: Fri Mar 3 16:20:03 2017 -0500
Committer: Ganesh Murthy <gm...@redhat.com>
Committed: Fri Mar 3 16:20:03 2017 -0500
----------------------------------------------------------------------
src/entity.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/a333a503/src/entity.c
----------------------------------------------------------------------
diff --git a/src/entity.c b/src/entity.c
index 3c0d83a..e6068fd 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -39,7 +39,7 @@ bool qd_entity_has(qd_entity_t* entity, const char *attribute) {
PyObject *value = qd_entity_get_py(entity, attribute);
Py_XDECREF(value);
PyErr_Clear(); /* Ignore errors */
- return value;
+ return value != NULL;
}
char *qd_entity_get_string(qd_entity_t *entity, const char* attribute) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org