summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-11-26 17:27:47 +0200
committerunknown <bell@sanja.is.com.ua>2004-11-26 17:27:47 +0200
commit24ad655ab5469b4fa7f9b5ee2bcd69ca6fb47f70 (patch)
treed8108af0ec00f3424c111b3975d7bac823b90723
parent24be20e8de4d6f611d1f622dd26f37161b76794d (diff)
downloadmariadb-git-24ad655ab5469b4fa7f9b5ee2bcd69ca6fb47f70.tar.gz
portability fix (some printf lack of NULL support in strings)
-rw-r--r--sql/item.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index d1ebdb1822f..001fbef9505 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -112,7 +112,8 @@ void Item::cleanup()
{
DBUG_ENTER("Item::cleanup");
DBUG_PRINT("info", ("Item: 0x%lx, Type: %d, name %s, original name %s",
- this, (int)type(), name, orig_name));
+ this, (int)type(), name ? name : "(null)",
+ orig_name ? orig_name : "null"));
fixed=0;
marker= 0;
if (orig_name)