1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Remove an unreachable branch, and improve documentation of

sqlite3_set_clientdata().

FossilOrigin-Name: 565c68adee64b6c838f2fcb162485b6cfe9a976adb79de4370be98fcd4af2baf
This commit is contained in:
drh
2023-08-30 17:14:12 +00:00
parent adf54de51e
commit a5af4a6614
4 changed files with 11 additions and 9 deletions

View File

@@ -3754,7 +3754,7 @@ int sqlite3_set_clientdata(
size_t n = strlen(zName);
p = sqlite3_malloc64( sizeof(DbClientData)+n+1 );
if( p==0 ){
if( pData && xDestructor ) xDestructor(pData);
if( xDestructor ) xDestructor(pData);
return SQLITE_NOMEM;
}
memcpy(p->zName, zName, n+1);