Mercurial > pidgin.yaz
changeset 460:f4d6dc3a1ada
[gaim-migrate @ 470]
Check to make sure we got us a pointer before dereferencing it.
committer: Tailor Script <tailor@pidgin.im>
author | Syd Logan <slogan> |
---|---|
date | Tue, 04 Jul 2000 07:49:10 +0000 |
parents | fb1d671e168e |
children | a72ac5d7dff4 |
files | src/ticker.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ticker.c Sat Jul 01 23:59:59 2000 +0000 +++ b/src/ticker.c Tue Jul 04 07:49:10 2000 +0000 @@ -159,7 +159,12 @@ BuddyTickerRemoveUser( char *name ) { GList *p = (GList *) BuddyTickerFindUser( name ); - TickerData *data = (TickerData *) p->data; + TickerData *data; + + if ( !p ) + return; + + data = (TickerData *) p->data; if ( userclose == TRUE ) return;