Changeset 133cdff


Ignore:
Timestamp:
2010-07-11T12:11:27Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b1f818b
Parents:
af9f2ca
Message:

More careful pointer checking in the master.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipc.c

    raf9f2ca r133cdff  
    134134        GSList *l;
    135135       
    136         if( strcmp( child->nick, cmd[1] ) != 0 )
     136        if( !child || !child->nick || strcmp( child->nick, cmd[1] ) != 0 )
    137137                return;
    138138       
     
    143143        {
    144144                old = l->data;
    145                 if( nick_cmp( old->nick, child->nick ) == 0 && child != old &&
     145                if( child != old &&
     146                    old->nick && nick_cmp( old->nick, child->nick ) == 0 &&
    146147                    old->password && strcmp( old->password, child->password ) == 0 )
    147148                        break;
Note: See TracChangeset for help on using the changeset viewer.