From ac94f68b598837a57f4cb28ecdf3d4003343bc45 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 1 Feb 2013 09:58:30 +0100 Subject: relay: add return of a NULL pointer in command "test" --- src/plugins/relay/weechat/relay-weechat-protocol.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c index a7885cfa7..c6e7313f6 100644 --- a/src/plugins/relay/weechat/relay-weechat-protocol.c +++ b/src/plugins/relay/weechat/relay-weechat-protocol.c @@ -877,7 +877,11 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(test) /* pointer */ relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_POINTER); - relay_weechat_msg_add_pointer (msg, &msg); + relay_weechat_msg_add_pointer (msg, (void *)0x1234abcd); + + /* NULL pointer */ + relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_POINTER); + relay_weechat_msg_add_pointer (msg, NULL); /* time */ relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_TIME); -- cgit v1.2.3