Mercurial > pidgin.yaz
comparison src/protocols/msn/object.c @ 9776:1e5ef71c9583
[gaim-migrate @ 10644]
A patch from Daniel Atallah that should fix sf bug 1008489:
"Windows Messenger BOT Crashes Gaim"
Someone MSN-savvy should check this to make sure it's a valid fix.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 19 Aug 2004 01:13:58 +0000 |
parents | ab6636c5a136 |
children | 54377b120d19 |
comparison
equal
deleted
inserted
replaced
9775:4c1a1be8ce33 | 9776:1e5ef71c9583 |
---|---|
74 GET_STRING_TAG(location, "Location"); | 74 GET_STRING_TAG(location, "Location"); |
75 GET_STRING_TAG(friendly, "Friendly"); | 75 GET_STRING_TAG(friendly, "Friendly"); |
76 GET_STRING_TAG(sha1d, "SHA1D"); | 76 GET_STRING_TAG(sha1d, "SHA1D"); |
77 GET_STRING_TAG(sha1c, "SHA1C"); | 77 GET_STRING_TAG(sha1c, "SHA1C"); |
78 | 78 |
79 /* If we are missing any of the required elements then discard the object */ | |
80 if (obj->creator == NULL || obj->size == 0 || obj->type == 0 | |
81 || obj->location == NULL || obj->friendly == NULL | |
82 || obj->sha1d == NULL || obj->sha1c == NULL) { | |
83 msn_object_destroy(obj); | |
84 obj = NULL; | |
85 } | |
86 | |
79 return obj; | 87 return obj; |
80 } | 88 } |
81 | 89 |
82 void | 90 void |
83 msn_object_destroy(MsnObject *obj) | 91 msn_object_destroy(MsnObject *obj) |