1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Always cast 0 to (char*)0 when it is an argument in a varargs function. (CVS 1948)

FossilOrigin-Name: a1f532520c16a1f4b4285cd522774669292fb234
This commit is contained in:
drh
2004-09-08 15:09:40 +00:00
parent 95380fae3c
commit 03c8988076
7 changed files with 24 additions and 24 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the PRAGMA command.
**
** $Id: pragma.c,v 1.64 2004/09/06 17:24:13 drh Exp $
** $Id: pragma.c,v 1.65 2004/09/08 15:09:41 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -208,7 +208,7 @@ void sqlite3Pragma(
if( !zLeft ) return;
if( minusFlag ){
zRight = 0;
sqlite3SetNString(&zRight, "-", 1, pValue->z, pValue->n, 0);
sqlite3SetNString(&zRight, "-", 1, pValue->z, pValue->n, (char*)0);
}else{
zRight = sqlite3NameFromToken(pValue);
}