1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-24 09:53:10 +03:00

Fix an uninitialized variable bug in nullif(). Ticket #898. (CVS 1957)

FossilOrigin-Name: ee335b501cf45727929aac12c0b74547dd54729e
This commit is contained in:
drh
2004-09-13 13:13:18 +00:00
parent 2aa6ca45c1
commit 94a98365a6
3 changed files with 9 additions and 9 deletions

View File

@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
** $Id: func.c,v 1.83 2004/09/06 17:24:13 drh Exp $
** $Id: func.c,v 1.84 2004/09/13 13:13:19 drh Exp $
*/
#include <ctype.h>
#include <math.h>
@@ -946,7 +946,7 @@ void sqlite3RegisterBuiltinFunctions(sqlite3 *db){
{ "random", -1, 0, SQLITE_UTF8, 0, randomFunc },
{ "like", 2, 0, SQLITE_UTF8, 0, likeFunc },
{ "glob", 2, 0, SQLITE_UTF8, 0, globFunc },
{ "nullif", 2, 0, SQLITE_UTF8, 0, nullifFunc },
{ "nullif", 2, 0, SQLITE_UTF8, 1, nullifFunc },
{ "sqlite_version", 0, 0, SQLITE_UTF8, 0, versionFunc},
{ "quote", 1, 0, SQLITE_UTF8, 0, quoteFunc },
{ "last_insert_rowid", 0, 1, SQLITE_UTF8, 0, last_insert_rowid },