diff options
author | drh <drh@noemail.net> | 2010-04-25 20:58:37 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-04-25 20:58:37 +0000 |
commit | a4741840f617abeda899dc5491bea582f0733c2e (patch) | |
tree | d123cc90b7e3adabca63e31b5fcd60d77cb5a492 /src | |
parent | 545f587fc8564075dafeb6a324fde43079b87a11 (diff) | |
download | sqlite-a4741840f617abeda899dc5491bea582f0733c2e.tar.gz sqlite-a4741840f617abeda899dc5491bea582f0733c2e.zip |
Remove an unreachable branch from the function initialization logic.
FossilOrigin-Name: 064d3ddd6199b7b049b1706974e4295f78fb5ab9
Diffstat (limited to 'src')
-rw-r--r-- | src/func.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/func.c b/src/func.c index 7bd3d58fa..8b1b2f71f 100644 --- a/src/func.c +++ b/src/func.c @@ -1411,17 +1411,15 @@ static void groupConcatFinalize(sqlite3_context *context){ } /* -** This function registered all of the above C functions as SQL -** functions. This should be the only routine in this file with -** external linkage. +** This routine does per-connection function registration. Most +** of the built-in functions above are part of the global function set. +** This routine only deals with those that are not global. */ void sqlite3RegisterBuiltinFunctions(sqlite3 *db){ - if( !db->mallocFailed ){ - int rc = sqlite3_overload_function(db, "MATCH", 2); - assert( rc==SQLITE_NOMEM || rc==SQLITE_OK ); - if( rc==SQLITE_NOMEM ){ - db->mallocFailed = 1; - } + int rc = sqlite3_overload_function(db, "MATCH", 2); + assert( rc==SQLITE_NOMEM || rc==SQLITE_OK ); + if( rc==SQLITE_NOMEM ){ + db->mallocFailed = 1; } } |