aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/purple/ft.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/purple/ft.c')
-rw-r--r--protocols/purple/ft.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/purple/ft.c b/protocols/purple/ft.c
index 81fee8d0..79476ebc 100644
--- a/protocols/purple/ft.c
+++ b/protocols/purple/ft.c
@@ -145,6 +145,10 @@ static gboolean prplcb_xfer_new_send_cb(gpointer data, gint fd, b_input_conditio
/* TODO(wilmer): After spreading some more const goodness in BitlBee,
remove the evil cast below. */
px->ft = imcb_file_send_start(ic, (char *) who, xfer->filename, xfer->size);
+
+ if (!px->ft) {
+ return FALSE;
+ }
px->ft->data = px;
px->ft->accept = prpl_xfer_accept;