Mercurial > pidgin.yaz
comparison libpurple/server.c @ 27810:11e45da1bb3a
fix for potential crash
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 24 Mar 2008 16:02:36 +0000 |
parents | 2fa28896c318 |
children | 030185a59a1a |
comparison
equal
deleted
inserted
replaced
27809:ebdbac0a51cf | 27810:11e45da1bb3a |
---|---|
258 (b->server_alias && alias && !strcmp(b->server_alias, alias))) | 258 (b->server_alias && alias && !strcmp(b->server_alias, alias))) |
259 { | 259 { |
260 continue; | 260 continue; |
261 } | 261 } |
262 | 262 |
263 /* alias must be non-NULL here */ | 263 if(alias) |
264 alias2 = sanitize_utf(alias, strlen(alias), &dummy); | 264 alias2 = sanitize_utf(alias, strlen(alias), &dummy); |
265 | 265 |
266 purple_blist_server_alias_buddy(b, alias2); | 266 purple_blist_server_alias_buddy(b, alias2); |
267 | 267 |
268 conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, b->name, account); | 268 conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, b->name, account); |
269 if(conv != NULL && alias2 != NULL && strcmp(alias2, who)) | 269 if(conv != NULL && alias2 != NULL && strcmp(alias2, who)) |