* Fixed a crash when SqlStmt_ShowDebug is given NULL pointer as statement handle (since r10753, related r10818).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14473 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
ab52f3ecc5
commit
f04df69c14
@ -12,6 +12,7 @@ Date Added
|
|||||||
* Made script command getmapxy print a warning, if an invalid type is supplied (related r69, r8459). [Ai4rei]
|
* Made script command getmapxy print a warning, if an invalid type is supplied (related r69, r8459). [Ai4rei]
|
||||||
* Fixed pc_marriage not checking spouse character job for baby class. [Ai4rei]
|
* Fixed pc_marriage not checking spouse character job for baby class. [Ai4rei]
|
||||||
* Removed ; from INTPTR_* defines (since r13449). [Ai4rei]
|
* Removed ; from INTPTR_* defines (since r13449). [Ai4rei]
|
||||||
|
* Fixed a crash when SqlStmt_ShowDebug is given NULL pointer as statement handle (since r10753, related r10818). [Ai4rei]
|
||||||
2010/11/16
|
2010/11/16
|
||||||
* Added a missing argument to a warning containing a format specifier. [Paradox924X]
|
* Added a missing argument to a warning containing a format specifier. [Paradox924X]
|
||||||
2010/11/15
|
2010/11/15
|
||||||
|
@ -920,7 +920,7 @@ void SqlStmt_ShowDebug_(SqlStmt* self, const char* debug_file, const unsigned lo
|
|||||||
{
|
{
|
||||||
if( self == NULL )
|
if( self == NULL )
|
||||||
ShowDebug("at %s:%lu - self is NULL\n", debug_file, debug_line);
|
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));
|
ShowDebug("at %s:%lu - %s\n", debug_file, debug_line, StringBuf_Value(&self->buf));
|
||||||
else
|
else
|
||||||
ShowDebug("at %s:%lu\n", debug_file, debug_line);
|
ShowDebug("at %s:%lu\n", debug_file, debug_line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user