Avoids overwriting log level and target if they've already been set
commitc50f84f591e11cbed4069a9bb0209a69a46d330c
authorStephen Lombardo <sjlombardo@zetetic.net>
Wed, 3 Jul 2024 19:18:44 +0000 (3 15:18 -0400)
committerStephen Lombardo <sjlombardo@zetetic.net>
Wed, 3 Jul 2024 19:18:44 +0000 (3 15:18 -0400)
treec956ca4ea07e8336698912a226706dab9ade1fc0
parentaddaa4c047eb9246d246e4cc8d8e1ddceb488445
Avoids overwriting log level and target if they've already been set

This commit corrects an issue what could occur if cipher_log_level
and/or cipher_log are set prior to activating sqlcipher, i.e. if
those pragmas are called before PRAGMA key or sqlite3_key. In that
case the specific requested log settings would be ovewritten by
different defaults.
src/crypto_impl.c