comparison libgaim/protocols/msn/msn.c @ 15283:c2f15e2117dc

[gaim-migrate @ 18073] gaim_xfer_new() can return NULL via g_return_if_fail(). It should therefore not be assumed that it returns a GaimXfer; check against its return value before proceeding when creating a GaimXfer. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 04 Jan 2007 23:20:12 +0000
parents 4bf7801a2539
children e354528c4163
comparison
equal deleted inserted replaced
15282:8e39ca9b954a 15283:c2f15e2117dc
426 GaimXfer *xfer; 426 GaimXfer *xfer;
427 427
428 session = gc->proto_data; 428 session = gc->proto_data;
429 429
430 xfer = gaim_xfer_new(gc->account, GAIM_XFER_SEND, who); 430 xfer = gaim_xfer_new(gc->account, GAIM_XFER_SEND, who);
431 431 if (xfer)
432 slplink = msn_session_get_slplink(session, who); 432 {
433 433 slplink = msn_session_get_slplink(session, who);
434 xfer->data = slplink; 434
435 435 xfer->data = slplink;
436 gaim_xfer_set_init_fnc(xfer, t_msn_xfer_init); 436
437 gaim_xfer_set_init_fnc(xfer, t_msn_xfer_init);
438 }
437 439
438 return xfer; 440 return xfer;
439 } 441 }
440 442
441 static void 443 static void