Changeset 6220254


Ignore:
Timestamp:
2011-03-31T10:28:17Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
43b1cd7, d43d55a
Parents:
15bc063
Message:

Check td->log everywhere before using it..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r15bc063 r6220254  
    511511                {
    512512                        id = g_ascii_strtoull( cmd[1], NULL, 10 );
    513                         if( id < TWITTER_LOG_LENGTH )
     513                        if( id < TWITTER_LOG_LENGTH && td->log )
    514514                                id = td->log[id].id;
    515515                }
     
    537537                }
    538538                else if( ( id = g_ascii_strtoull( cmd[1], NULL, 10 ) ) &&
    539                          ( id < TWITTER_LOG_LENGTH ) )
     539                         ( id < TWITTER_LOG_LENGTH ) && td->log )
    540540                {
    541541                        bu = td->log[id].bu;
Note: See TracChangeset for help on using the changeset viewer.