/soc/2015/koosha/main: e9a2ae29aa50: Change a glib assertion to ...

Koosha Khajehmoogahi <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: e9a2ae29aa50206a4a6e68b71015371e0e5bc83c
Author:	 Koosha Khajehmoogahi <[email protected]>
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);

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.