mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
core, plugins: return "0x0" instead of "(nil)" for pointers formatted in strings
This is a partial revert of the commit
965beb37de.
This commit is contained in:
@@ -512,7 +512,7 @@ plugin_api_info_buffer_cb (const void *pointer, void *data,
|
||||
if (!ptr_buffer)
|
||||
return NULL;
|
||||
|
||||
snprintf (value, sizeof (value), "%p", ptr_buffer);
|
||||
snprintf (value, sizeof (value), "0x%lx", (unsigned long)ptr_buffer);
|
||||
return strdup (value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user