From a02769bb772df079229b8ab57996c7afa519f3c0 Mon Sep 17 00:00:00 2001 From: ai4rei Date: Sat, 20 Nov 2010 01:39:28 +0000 Subject: * Fixed a crash when SqlStmt_ShowDebug is given NULL pointer as statement handle (since r10753, related r10818). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14473 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/sql.c b/src/common/sql.c index f7c45c631..d8e397e8d 100644 --- a/src/common/sql.c +++ b/src/common/sql.c @@ -920,7 +920,7 @@ void SqlStmt_ShowDebug_(SqlStmt* self, const char* debug_file, const unsigned lo { if( self == NULL ) ShowDebug("at %s:%lu - self is NULL\n", debug_file, debug_line); - if( StringBuf_Length(&self->buf) > 0 ) + else if( StringBuf_Length(&self->buf) > 0 ) ShowDebug("at %s:%lu - %s\n", debug_file, debug_line, StringBuf_Value(&self->buf)); else ShowDebug("at %s:%lu\n", debug_file, debug_line); -- cgit v1.2.3-60-g2f50