1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Omit an unreachable branch when SQLITE_ENABLE_API_ARMOR is not defined.

FossilOrigin-Name: 5f8b807b568f4f9ec65f1c924e0e1ac2f996f405e045204145ad7116be7580ee
This commit is contained in:
drh
2023-10-17 18:28:27 +00:00
parent 4c827feba1
commit 42b49a3138
3 changed files with 13 additions and 8 deletions

View File

@@ -375,7 +375,7 @@ void sqlite3_value_free(sqlite3_value *pOld){
** is too big or if an OOM occurs.
**
** The invokeValueDestructor(P,X) routine invokes destructor function X()
** on value P is not going to be used and need to be destroyed.
** on value P if P is not going to be used and need to be destroyed.
*/
static void setResultStrOrError(
sqlite3_context *pCtx, /* Function context */
@@ -415,9 +415,14 @@ static int invokeValueDestructor(
}else{
xDel((void*)p);
}
#ifdef SQLITE_ENABLE_API_ARMOR
if( pCtx!=0 ){
sqlite3_result_error_toobig(pCtx);
}
#else
assert( pCtx!=0 );
sqlite3_result_error_toobig(pCtx);
#endif
return SQLITE_TOOBIG;
}
void sqlite3_result_blob(