mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +02:00
Fix bug with pointer conversion for scripts API (return empty string instead of "0x0")
This commit is contained in:
@@ -177,7 +177,7 @@ script_ptr2str (void *pointer)
|
||||
char pointer_str[128];
|
||||
|
||||
if (!pointer)
|
||||
return strdup ("0x0");
|
||||
return strdup ("");
|
||||
|
||||
snprintf (pointer_str, sizeof (pointer_str),
|
||||
"0x%lx", (long unsigned int)pointer);
|
||||
|
||||
Reference in New Issue
Block a user