diff options
author | dequis <dx@dxzone.com.ar> | 2015-12-06 01:41:32 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-12-06 01:41:32 -0300 |
commit | 459dec8db85fdadba8e2ddeb2cf46b4992360e95 (patch) | |
tree | 108d54329017aafaf546e1d602549794841baa65 /protocols/purple/purple.c | |
parent | c54bb115aad74f9f59e67ad7996332aabe64b8f8 (diff) |
purple: fix crash when doing 'chat with' with skypeweb
It was passing the wrong data to the callback - it was supposed to pass
the data of the PurpleMenuItem but it passed the PurpleMenuItem itself.
Probably also applies to other protocols too. It worked fine with
jabber, which i'm guessing is what this code was tested with originally.
It still whines about the null return value saying "(Possible) failure"
but, eh, whatever.
Diffstat (limited to 'protocols/purple/purple.c')
-rw-r--r-- | protocols/purple/purple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index 4c451db1..69fcbc4d 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -650,7 +650,7 @@ struct groupchat *purple_chat_with(struct im_connection *ic, char *who) /* Call the fucker. */ callback = (void *) mi->callback; - callback(&pb->node, menu->data); + callback(&pb->node, mi->data); return NULL; } |