/soc/2015/koosha/main: e9a2ae29aa50: Change a glib assertion to ...
Koosha Khajehmoogahi
koosha at posteo.de
Fri Aug 21 14:46:01 EDT 2015
Changeset: e9a2ae29aa50206a4a6e68b71015371e0e5bc83c
Author: Koosha Khajehmoogahi <koosha at posteo.de>
Date: 2015-08-20 20:38 +0200
Branch: default
URL: https://hg.pidgin.im/soc/2015/koosha/main/rev/e9a2ae29aa50
Description:
Change a glib assertion to a normal 'if'
diffstat:
libpurple/protocols/jabber/sm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff --git a/libpurple/protocols/jabber/sm.c b/libpurple/protocols/jabber/sm.c
--- a/libpurple/protocols/jabber/sm.c
+++ b/libpurple/protocols/jabber/sm.c
@@ -211,7 +211,8 @@ static void remove_old_packets_from_buff
{
guint32 i;
- g_return_if_fail(h > js->sm->last_acked_stanza);
+ if (h <= js->sm->last_acked_stanza)
+ return;
for (i = js->sm->last_acked_stanza + 1; i <= h; i++)
g_hash_table_remove(js->sm->packets_buffer, &i);
More information about the Commits
mailing list