From: <nos...@us...> - 2006-10-07 17:16:10
|
Revision: 17441 http://svn.sourceforge.net/gaim/?rev=17441&view=rev Author: nosnilmot Date: 2006-10-07 10:15:58 -0700 (Sat, 07 Oct 2006) Log Message: ----------- Fix Coverity CID 115 - "last_updated_utf8_string" may be NULL Modified Paths: -------------- trunk/libgaim/protocols/yahoo/yahoo_profile.c Modified: trunk/libgaim/protocols/yahoo/yahoo_profile.c =================================================================== --- trunk/libgaim/protocols/yahoo/yahoo_profile.c 2006-10-07 17:09:14 UTC (rev 17440) +++ trunk/libgaim/protocols/yahoo/yahoo_profile.c 2006-10-07 17:15:58 UTC (rev 17441) @@ -1167,15 +1167,17 @@ } } - /* see if Member Since is there, and if so, extract it. */ - found |= gaim_markup_extract_info_field(stripped, stripped_len, s, - "Member Since:", 1, last_updated_utf8_string, - '\n', NULL, _("Member Since"), 0, NULL, yahoo_info_date_reformat); + if (last_updated_utf8_string != NULL) { + /* see if Member Since is there, and if so, extract it. */ + found |= gaim_markup_extract_info_field(stripped, stripped_len, s, + "Member Since:", 1, last_updated_utf8_string, + '\n', NULL, _("Member Since"), 0, NULL, yahoo_info_date_reformat); - /* extract the Last Updated date and put it in */ - found |= gaim_markup_extract_info_field(stripped, stripped_len, s, - last_updated_utf8_string, 1, " ", '\n', NULL, - _("Last Update"), 0, NULL, yahoo_info_date_reformat); + /* extract the Last Updated date and put it in */ + found |= gaim_markup_extract_info_field(stripped, stripped_len, s, + last_updated_utf8_string, 1, " ", '\n', NULL, + _("Last Update"), 0, NULL, yahoo_info_date_reformat); + } } /* if (profile_state == PROFILE_STATE_DEFAULT) */ if(!found) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |