Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/msn.c @ 24355:63558ea6fac6
It's an error if purple_xfer_new fails, so use a g_return_val_if_fail
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 14 Nov 2008 07:23:56 +0000 |
parents | fb722b8b4c74 |
children | b70fa8735b73 |
comparison
equal
deleted
inserted
replaced
24354:157bcca38f4c | 24355:63558ea6fac6 |
---|---|
548 | 548 |
549 static PurpleXfer* | 549 static PurpleXfer* |
550 msn_new_xfer(PurpleConnection *gc, const char *who) | 550 msn_new_xfer(PurpleConnection *gc, const char *who) |
551 { | 551 { |
552 MsnSession *session; | 552 MsnSession *session; |
553 MsnSlpLink *slplink; | |
554 PurpleXfer *xfer; | 553 PurpleXfer *xfer; |
555 | 554 |
556 session = gc->proto_data; | 555 session = gc->proto_data; |
557 | 556 |
558 xfer = purple_xfer_new(gc->account, PURPLE_XFER_SEND, who); | 557 xfer = purple_xfer_new(gc->account, PURPLE_XFER_SEND, who); |
559 | 558 |
560 if (xfer) | 559 g_return_val_if_fail(xfer != NULL, NULL); |
561 { | 560 |
562 slplink = msn_session_get_slplink(session, who); | 561 xfer->data = msn_session_get_slplink(session, who); |
563 | 562 |
564 xfer->data = slplink; | 563 purple_xfer_set_init_fnc(xfer, t_msn_xfer_init); |
565 | |
566 purple_xfer_set_init_fnc(xfer, t_msn_xfer_init); | |
567 } | |
568 | 564 |
569 return xfer; | 565 return xfer; |
570 } | 566 } |
571 | 567 |
572 static void | 568 static void |