diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-02-01 09:58:30 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-02-01 09:58:30 +0100 |
commit | ac94f68b598837a57f4cb28ecdf3d4003343bc45 (patch) | |
tree | f5526b3ffe3a59bf3b894de44d4457011f190dcb /src | |
parent | 08f360692dc72d466484e608375bb410aa0df6f3 (diff) | |
download | weechat-ac94f68b598837a57f4cb28ecdf3d4003343bc45.zip |
relay: add return of a NULL pointer in command "test"
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/relay/weechat/relay-weechat-protocol.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |