aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <>2021-10-04 22:34:38 +0000
committerdrh <>2021-10-04 22:34:38 +0000
commit7d4c94bc0fc8fbf9359f57a90c2c19567d87df02 (patch)
tree9b1ae8d354ebab6ef214d15da4c653090de2ae19 /src/main.c
parentd9403bc6428c9e925c95503a4071c8f3add7e47a (diff)
downloadsqlite-7d4c94bc0fc8fbf9359f57a90c2c19567d87df02.tar.gz
sqlite-7d4c94bc0fc8fbf9359f57a90c2c19567d87df02.zip
Fix harmless static-analyzer warnings.
FossilOrigin-Name: 32f33f356931242b59c01b5df7e180941231e3d9c91577ad33aa4a01e9d59092
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 3a25f3bac..7b4c8938c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1819,7 +1819,6 @@ int sqlite3CreateFunc(
FuncDestructor *pDestructor
){
FuncDef *p;
- int nName;
int extraFlags;
assert( sqlite3_mutex_held(db->mutex) );
@@ -1829,7 +1828,7 @@ int sqlite3CreateFunc(
|| ((xFinal==0)!=(xStep==0)) /* Both or neither of xFinal and xStep */
|| ((xValue==0)!=(xInverse==0)) /* Both or neither of xValue, xInverse */
|| (nArg<-1 || nArg>SQLITE_MAX_FUNCTION_ARG)
- || (255<(nName = sqlite3Strlen30( zFunctionName)))
+ || (255<sqlite3Strlen30(zFunctionName))
){
return SQLITE_MISUSE_BKPT;
}