diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-12-19 10:40:49 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-12-19 10:40:49 +0100 |
commit | 5596f7e10cede4c09d917e0c88e1e9a5a3410109 (patch) | |
tree | 301999a68c6d4839e1c54bf15d3829bd6ea5b4bd | |
parent | d07a7cedc81200436a35474d454d9f0f6857123e (diff) | |
download | weechat-5596f7e10cede4c09d917e0c88e1e9a5a3410109.zip |
Fix bug with pointer conversion for scripts API (return empty string instead of "0x0")
-rw-r--r-- | src/plugins/scripts/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scripts/script.c b/src/plugins/scripts/script.c index 7b44e5e2c..4ebf5c8fd 100644 --- a/src/plugins/scripts/script.c +++ b/src/plugins/scripts/script.c @@ -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); |