From: <ma...@us...> - 2006-08-24 01:14:01
|
Revision: 17009 Author: marv_sf Date: 2006-08-23 18:13:57 -0700 (Wed, 23 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=17009&view=rev Log Message: ----------- don't crash when we're set idle but not logged in. Modified Paths: -------------- trunk/libgaim/protocols/yahoo/yahoo.c Modified: trunk/libgaim/protocols/yahoo/yahoo.c =================================================================== --- trunk/libgaim/protocols/yahoo/yahoo.c 2006-08-23 21:34:43 UTC (rev 17008) +++ trunk/libgaim/protocols/yahoo/yahoo.c 2006-08-24 01:13:57 UTC (rev 17009) @@ -3349,6 +3349,9 @@ char *msg = NULL, *msg2 = NULL; GaimStatus *status = NULL; + if (!yd) + return; + if (idle && yd->current_status != YAHOO_STATUS_CUSTOM) yd->current_status = YAHOO_STATUS_IDLE; else if (!idle && yd->current_status == YAHOO_STATUS_IDLE) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |