Mercurial > pidgin.yaz
comparison libgaim/protocols/jabber/buddy.c @ 15082:bc440018e208
[gaim-migrate @ 17867]
Get rid of some silly casting
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 01 Dec 2006 09:47:20 +0000 |
parents | b598a78c4550 |
children | b81e4e44b509 |
comparison
equal
deleted
inserted
replaced
15081:d24de6319f87 | 15082:bc440018e208 |
---|---|
65 JabberBuddy *jabber_buddy_find(JabberStream *js, const char *name, | 65 JabberBuddy *jabber_buddy_find(JabberStream *js, const char *name, |
66 gboolean create) | 66 gboolean create) |
67 { | 67 { |
68 JabberBuddy *jb; | 68 JabberBuddy *jb; |
69 const char *realname; | 69 const char *realname; |
70 | |
71 if (js->buddies == NULL) | |
72 return NULL; | |
70 | 73 |
71 if(!(realname = jabber_normalize(js->gc->account, name))) | 74 if(!(realname = jabber_normalize(js->gc->account, name))) |
72 return NULL; | 75 return NULL; |
73 | 76 |
74 jb = g_hash_table_lookup(js->buddies, realname); | 77 jb = g_hash_table_lookup(js->buddies, realname); |