diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-20 01:39:28 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-20 01:39:28 +0000 |
commit | 29533e76ff2aeae832cb514a3e304066eb150f0f (patch) | |
tree | a3d264960c90fa2c8c33a8d447e33789e48902df /src/common | |
parent | 32537c59ad47e9261938aa723d4e87c86b061089 (diff) | |
download | hercules-29533e76ff2aeae832cb514a3e304066eb150f0f.tar.gz hercules-29533e76ff2aeae832cb514a3e304066eb150f0f.tar.bz2 hercules-29533e76ff2aeae832cb514a3e304066eb150f0f.tar.xz hercules-29533e76ff2aeae832cb514a3e304066eb150f0f.zip |
* 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/trunk@14473 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/sql.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |