# HG changeset patch # User Eric Warmenhoven # Date 987021228 0 # Node ID 4c3bcc579e7118b0b5cdf509f2a57d097885f568 # Parent 23ad4f7b644f042bc27e7c110c7832b7cb2a1368 [gaim-migrate @ 1708] fixing more segfaults due to null handlers. committer: Tailor Script diff -r 23ad4f7b644f -r 4c3bcc579e71 plugins/icq/gaim_icq.c --- a/plugins/icq/gaim_icq.c Wed Apr 11 04:36:21 2001 +0000 +++ b/plugins/icq/gaim_icq.c Wed Apr 11 20:33:48 2001 +0000 @@ -236,6 +236,12 @@ g_free(what); } +static void icq_req_not(struct icq_link *link, unsigned long id, int type, int arg, void *data) { + if (type == ICQ_NOTIFY_FAILED) + do_error_dialog("Failure in sending packet", "ICQ error"); + return; +} + static void icq_login(struct aim_user *user) { struct gaim_connection *gc = new_gaim_conn(user); struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1); @@ -262,6 +268,7 @@ link->icq_WrongPassword = icq_wrong_passwd; link->icq_InvalidUIN = icq_invalid_uin; link->icq_Log = icq_do_log; + link->icq_RequestNotify = icq_req_not; icq_ContactClear(id->link); if (bud_list_cache_exists(gc))