# HG changeset patch # User Stu Tomlinson # Date 1160241358 0 # Node ID b7754ba03aa81e1b0c15b54060364cf5c459adc3 # Parent 37bb5e4873472277fa2f6669ac2dbb0dc9ff5d17 [gaim-migrate @ 17441] Fix Coverity CID 115 - "last_updated_utf8_string" may be NULL committer: Tailor Script diff -r 37bb5e487347 -r b7754ba03aa8 libgaim/protocols/yahoo/yahoo_profile.c --- a/libgaim/protocols/yahoo/yahoo_profile.c Sat Oct 07 17:09:14 2006 +0000 +++ b/libgaim/protocols/yahoo/yahoo_profile.c Sat Oct 07 17:15:58 2006 +0000 @@ -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)