1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 09:13: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 a75a947f5f
commit bdfa1bd51c
21 changed files with 65 additions and 42 deletions
+2 -1
View File
@@ -79,7 +79,8 @@ fset_mouse_focus_cb (const void *pointer, void *data, struct t_hashtable *info)
if (!ptr_fset_option)
return info;
snprintf (str_value, sizeof (str_value), "%p", ptr_fset_option);
snprintf (str_value, sizeof (str_value),
"0x%lx", (unsigned long)ptr_fset_option);
weechat_hashtable_set (info, "fset_option", str_value);
snprintf (str_value, sizeof (str_value), "%ld", option_index);
weechat_hashtable_set (info, "fset_option_index", str_value);