1
0
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:
Sebastien Helleu
2008-12-19 10:40:49 +01:00
parent d07a7cedc8
commit 5596f7e10c
+1 -1
View File
@@ -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);