diff options
author | drh <drh@noemail.net> | 2004-09-13 13:13:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2004-09-13 13:13:18 +0000 |
commit | 94a98365a6ec7c0ffa500430cbe038d2482751ae (patch) | |
tree | 53200a84756c3a5552ddbeed0eebca99571e496d /src/func.c | |
parent | 2aa6ca45c1c4e68d703b059cc22509b9ace8f65e (diff) | |
download | sqlite-94a98365a6ec7c0ffa500430cbe038d2482751ae.tar.gz sqlite-94a98365a6ec7c0ffa500430cbe038d2482751ae.zip |
Fix an uninitialized variable bug in nullif(). Ticket #898. (CVS 1957)
FossilOrigin-Name: ee335b501cf45727929aac12c0b74547dd54729e
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c index 22921ba32..9c7ccb3e7 100644 --- a/src/func.c +++ b/src/func.c @@ -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 }, |