Changeset 37aa317


Ignore:
Timestamp:
2010-04-13T22:09:40Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
40bc82d
Parents:
3254c12
Message:

Small Valgrind noise fix. (Check if the conn is still alive before getting
its private data.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    r3254c12 r37aa317  
    183183
    184184        ic = req->data;
    185         td = ic->proto_data;
    186185
    187186        // Check if the connection is still active.
    188187        if( !g_slist_find( twitter_connections, ic ) )
    189188                return;
     189       
     190        td = ic->proto_data;
    190191
    191192        // Check if the HTTP request went well.
     
    468469{
    469470        struct im_connection *ic = req->data;
    470         struct twitter_data *td = ic->proto_data;
     471        struct twitter_data *td;
    471472        struct xt_parser *parser;
    472473        struct twitter_xml_list *txl;
     
    475476        if( !g_slist_find( twitter_connections, ic ) )
    476477                return;
     478       
     479        td = ic->proto_data;
    477480
    478481        // Check if the HTTP request went well.
     
    529532{
    530533        struct im_connection *ic = req->data;
    531         struct twitter_data *td = ic->proto_data;
     534        struct twitter_data *td;
    532535        struct xt_parser *parser;
    533536        struct twitter_xml_list *txl;
     
    538541        if( !g_slist_find( twitter_connections, ic ) )
    539542                return;
    540 
     543       
     544        td = ic->proto_data;
     545       
    541546        // Check if the HTTP request went well.
    542547        if (req->status_code != 200) {
Note: See TracChangeset for help on using the changeset viewer.