Mercurial > pidgin
diff src/protocols/oscar/tlv.c @ 2421:95b4ec08abec
[gaim-migrate @ 2434]
stuff
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 03 Oct 2001 20:36:33 +0000 |
parents | d82efea341ef |
children | 9467e4ee81be |
line wrap: on
line diff
--- a/src/protocols/oscar/tlv.c Wed Oct 03 19:42:31 2001 +0000 +++ b/src/protocols/oscar/tlv.c Wed Oct 03 20:36:33 2001 +0000 @@ -266,6 +266,9 @@ fu8_t buf[16*16]; /* icky fixed length buffer */ aim_bstream_t bs; + if (!caps) + return 0; /* nothing there anyway */ + aim_bstream_init(&bs, buf, sizeof(buf)); aim_putcap(&bs, caps); @@ -273,7 +276,7 @@ return aim_addtlvtochain_raw(list, t, aim_bstream_curpos(&bs), buf); } -faim_internal int aim_addtlvtochain_userinfo(aim_tlvlist_t **list, fu16_t type, struct aim_userinfo_s *ui) +faim_internal int aim_addtlvtochain_userinfo(aim_tlvlist_t **list, fu16_t type, aim_userinfo_t *ui) { fu8_t buf[1024]; /* bleh */ aim_bstream_t bs;