[gaim-migrate @ 14016]

Sat, 22 Oct 2005 22:38:00 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sat, 22 Oct 2005 22:38:00 +0000
changeset 11725
0649170ebdf6
parent 11724
d3f71bc34b4f
child 11726
6f319ff4cea5

[gaim-migrate @ 14016]
Don't crash when we hit the idle-away timeout (we don't set ourselves
to away, either, but that'll come eventually)

src/idle.c file | annotate | diff | comparison | revisions
--- a/src/idle.c	Sat Oct 22 22:29:40 2005 +0000
+++ b/src/idle.c	Sat Oct 22 22:38:00 2005 +0000
@@ -160,7 +160,8 @@
 			/* Mark our accounts "away" using the idleaway status */
 			idleaway_name = gaim_prefs_get_string("/core/status/idleaway");
 			saved_status = gaim_savedstatus_find(idleaway_name);
-			gaim_savedstatus_activate(saved_status);
+			if (saved_status)
+				gaim_savedstatus_activate(saved_status);
 
 			gc->is_auto_away = GAIM_IDLE_AUTO_AWAY;
 		} else {

mercurial