From 5596f7e10cede4c09d917e0c88e1e9a5a3410109 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 19 Dec 2008 10:40:49 +0100 Subject: Fix bug with pointer conversion for scripts API (return empty string instead of "0x0") --- src/plugins/scripts/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3