From dc785a4369d061c5f87cb379d8686d159e153699 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 16 May 2006 21:20:14 +0000 Subject: [PATCH] Fixed bug at29628 --- dlls/sqlite/sqlite_amx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/sqlite/sqlite_amx.cpp b/dlls/sqlite/sqlite_amx.cpp index 931e131b..b024660e 100755 --- a/dlls/sqlite/sqlite_amx.cpp +++ b/dlls/sqlite/sqlite_amx.cpp @@ -229,7 +229,9 @@ const char *SQLResult::GetField(unsigned int field) return NULL; } - return m_data[(m_currentRow + 1) * m_columnCount + field]; + char *data = m_data[(m_currentRow + 1) * m_columnCount + field]; + + return (data ? data : ""); } const char *SQLResult::GetField(const char *field)