From: Mark D. <the...@us...> - 2005-10-22 22:38:08
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31885/src Modified Files: idle.c Log Message: Don't crash when we hit the idle-away timeout (we don't set ourselves to away, either, but that'll come eventually) Index: idle.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/idle.c,v retrieving revision 1.74 retrieving revision 1.75 diff -u -d -p -r1.74 -r1.75 --- idle.c 22 Oct 2005 22:29:39 -0000 1.74 +++ idle.c 22 Oct 2005 22:38:00 -0000 1.75 @@ -160,7 +160,8 @@ check_idle(gpointer data) /* 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 { |