mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +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:
@@ -379,7 +379,7 @@ plugin_script_ptr2str (void *pointer)
|
||||
return str_pointer[index_pointer];
|
||||
|
||||
snprintf (str_pointer[index_pointer], sizeof (str_pointer[index_pointer]),
|
||||
"%p", pointer);
|
||||
"0x%lx", (unsigned long)pointer);
|
||||
|
||||
return str_pointer[index_pointer];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user