summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_avatars.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_avatars.cpp b/protocols/SkypeWeb/src/skype_avatars.cpp
index f3c8a4a154..0988f2a6d2 100644
--- a/protocols/SkypeWeb/src/skype_avatars.cpp
+++ b/protocols/SkypeWeb/src/skype_avatars.cpp
@@ -142,8 +142,9 @@ void CSkypeProto::GetAvatarFileName(MCONTACT hContact, TCHAR* pszDest, size_t cb
void CSkypeProto::SetAvatarUrl(MCONTACT hContact, CMString &tszUrl)
{
ptrT oldUrl(getTStringA(hContact, "AvatarUrl"));
- if (tszUrl == oldUrl)
- return;
+ if (oldUrl != NULL)
+ if (tszUrl == oldUrl)
+ return;
if (tszUrl.IsEmpty()) {
delSetting(hContact, "AvatarUrl");