Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/tlv.c @ 18610:e333072d8680
I don't think this check is needed. If it is then it's because we're
inserting "NULL" into a tlvchain and that should be fixed.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 22 Jul 2007 08:29:48 +0000 |
parents | f80f7e1047be |
children | 9f3c2c5d96b2 |
comparison
equal
deleted
inserted
replaced
18609:2774acdb1cff | 18610:e333072d8680 |
---|---|
716 aim_tlv_t *tlv; | 716 aim_tlv_t *tlv; |
717 int i; | 717 int i; |
718 | 718 |
719 for (cur = list, i = 0; cur != NULL; cur = cur->next) { | 719 for (cur = list, i = 0; cur != NULL; cur = cur->next) { |
720 tlv = cur->data; | 720 tlv = cur->data; |
721 if (tlv != NULL) { /* TODO: This NULL check shouldn't be needed */ | 721 if (tlv->type == type) |
722 if (tlv->type == type) | 722 i++; |
723 i++; | 723 if (i >= nth) |
724 if (i >= nth) | 724 return tlv; |
725 return tlv; | |
726 } | |
727 } | 725 } |
728 | 726 |
729 return NULL; | 727 return NULL; |
730 } | 728 } |
731 | 729 |