Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/oim.c @ 24921:2aa4b88bdcf8
I have no idea if this check is needed, but it looked a bit risky without it
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 08 Jan 2009 14:15:16 +0000 |
parents | 955bfda56492 |
children | d8ce4de7137f 2260e5b0ca91 399776a9ad98 |
comparison
equal
deleted
inserted
replaced
24898:ee9b00cc4298 | 24921:2aa4b88bdcf8 |
---|---|
649 | 649 |
650 from = msn_message_get_attr(message, "X-OIM-originatingSource"); | 650 from = msn_message_get_attr(message, "X-OIM-originatingSource"); |
651 | 651 |
652 /* Match number to user's mobile number, FROM is a phone number | 652 /* Match number to user's mobile number, FROM is a phone number |
653 if the other side pages you using your phone number */ | 653 if the other side pages you using your phone number */ |
654 if (!strncmp(from, "tel:+", 5)) { | 654 if (from && !strncmp(from, "tel:+", 5)) { |
655 MsnUser *user = msn_userlist_find_user_with_mobile_phone( | 655 MsnUser *user = msn_userlist_find_user_with_mobile_phone( |
656 rdata->oim->session->userlist, from + 4); | 656 rdata->oim->session->userlist, from + 4); |
657 | 657 |
658 if (user && user->passport) | 658 if (user && user->passport) |
659 passport = g_strdup(user->passport); | 659 passport = g_strdup(user->passport); |