pidgin: 54da791a: fix a crash when changing to away withou...

wabz at pidgin.im wabz at pidgin.im
Thu Mar 12 07:06:14 EDT 2009


-----------------------------------------------------------------
Revision: 54da791ad8d26949571afcbd931518f5b27f2bfd
Ancestor: 7f8f2c1da8b80a800985048fe1895bfee3c1676c
Author: wabz at pidgin.im
Date: 2009-03-12T11:02:02
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/54da791ad8d26949571afcbd931518f5b27f2bfd

Modified files:
        libpurple/protocols/oscar/oscar.c

ChangeLog: 

fix a crash when changing to away without a status message

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c	704715710ea0f3812d16d7d33f099de2f1140684
+++ libpurple/protocols/oscar/oscar.c	c8e6d60f92cfec074a2903737904be144cf27032
@@ -4789,7 +4789,7 @@ oscar_set_info_and_status(PurpleAccount 
 
 		status_html = purple_status_get_attr_string(status, "message");
 
-		if (primitive == PURPLE_STATUS_AVAILABLE || primitive == PURPLE_STATUS_INVISIBLE)
+		if (status_html == NULL || primitive == PURPLE_STATUS_AVAILABLE || primitive == PURPLE_STATUS_INVISIBLE)
 		{
 			/* This is needed for us to un-set any previous away message. */
 			away = g_strdup("");


More information about the Commits mailing list