comparison src/protocols/oscar/locate.c @ 10116:9f358a718f38

[gaim-migrate @ 11153] I went through every commit email on oldstatus since we branched, and merged relevant things to HEAD that had only been applied on oldstatus. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 18 Oct 2004 19:02:33 +0000
parents 92cbf9713795
children 08c8a18fb557
comparison
equal deleted inserted replaced
10115:4fd312ceaa29 10116:9f358a718f38
349 /* Actually request some info up in this piece */ 349 /* Actually request some info up in this piece */
350 aim_locate_dorequest(sess); 350 aim_locate_dorequest(sess);
351 } 351 }
352 352
353 faim_export aim_userinfo_t *aim_locate_finduserinfo(aim_session_t *sess, const char *sn) { 353 faim_export aim_userinfo_t *aim_locate_finduserinfo(aim_session_t *sess, const char *sn) {
354 aim_userinfo_t *cur = sess->locate.userinfo; 354 aim_userinfo_t *cur = NULL;
355
356 if (sn == NULL)
357 return NULL;
358
359 cur = sess->locate.userinfo;
355 360
356 while (cur != NULL) { 361 while (cur != NULL) {
357 if (aim_sncmp(cur->sn, sn) == 0) 362 if (aim_sncmp(cur->sn, sn) == 0)
358 return cur; 363 return cur;
359 cur = cur->next; 364 cur = cur->next;