From 33c5a8afacfccd6960a7253d0bf997934b61733b Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jan 2003 17:51:53 +0100 Subject: [PATCH] Fixed bug in Protocol::convert_str() (missing return caused "Out of memory" errors when optimized). sql/protocol.cc: Put inline back and added missing return. --- sql/protocol.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/protocol.cc b/sql/protocol.cc index adb925a8cd4..da9f5712e3a 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -40,9 +40,9 @@ bool Protocol::net_store_data(const char *from, uint length) return 0; } -bool Protocol::convert_str(const char *from, uint length) +inline bool Protocol::convert_str(const char *from, uint length) { - convert->store(packet, from, length); + return convert->store(packet, from, length); } #endif