summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-06-23 13:38:31 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-07-25 18:09:29 +0100
commitd70ba600276dc65fca8376d5bd79d1be27b03db9 (patch)
tree9bad55f056db05cbcbc85dc83897ffcab82d3ca6 /dbus
parent0ae863ef164f4ac011888506bf84571f2b201ceb (diff)
downloaddbus-d70ba600276dc65fca8376d5bd79d1be27b03db9.tar.gz
dbus_message_unref: make an assertion more strict
We've just decremented the refcount, so it should have been at least 1 before we did that. Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38005
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c
index a59ed9bf..d62529cb 100644
--- a/dbus/dbus-message.c
+++ b/dbus/dbus-message.c
@@ -1549,7 +1549,7 @@ dbus_message_unref (DBusMessage *message)
old_refcount = _dbus_atomic_dec (&message->refcount);
- _dbus_assert (old_refcount >= 0);
+ _dbus_assert (old_refcount >= 1);
if (old_refcount == 1)
{