libgaim/protocols/qq/recv_core.c

changeset 14560
2e1adc8d6e8e
parent 14257
6510563c1ee9
child 14691
efb5fd0a34b7
equal deleted inserted replaced
14559:78092ceb0bc3 14560:2e1adc8d6e8e
294 qq_data *qd; 294 qq_data *qd;
295 guint8 *buf; 295 guint8 *buf;
296 gint len; 296 gint len;
297 297
298 gc = (GaimConnection *) data; 298 gc = (GaimConnection *) data;
299 if(gc == NULL || gc->proto_data == NULL || cond != GAIM_INPUT_READ) { 299
300 g_return_if_fail(gc != NULL && gc->proto_data != NULL);
301
302 if(cond != GAIM_INPUT_READ) {
300 gaim_connection_error(gc, _("Socket error")); 303 gaim_connection_error(gc, _("Socket error"));
301 return; 304 return;
302 } 305 }
303 306
304 qd = (qq_data *) gc->proto_data; 307 qd = (qq_data *) gc->proto_data;

mercurial