diff -r 78092ceb0bc3 -r 2e1adc8d6e8e libgaim/protocols/qq/recv_core.c --- a/libgaim/protocols/qq/recv_core.c Sun Sep 10 15:07:46 2006 +0000 +++ b/libgaim/protocols/qq/recv_core.c Sun Sep 10 15:13:59 2006 +0000 @@ -296,7 +296,10 @@ gint len; gc = (GaimConnection *) data; - if(gc == NULL || gc->proto_data == NULL || cond != GAIM_INPUT_READ) { + + g_return_if_fail(gc != NULL && gc->proto_data != NULL); + + if(cond != GAIM_INPUT_READ) { gaim_connection_error(gc, _("Socket error")); return; }