1
0
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:
Sébastien Helleu
2024-06-22 08:54:08 +02:00
parent c82486d437
commit fb9a69c6ae
21 changed files with 72 additions and 42 deletions
+1 -1
View File
@@ -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);
}