defensive if
This commit is contained in:
parent
d06df97716
commit
b6c0beaf8b
|
@ -8,11 +8,14 @@ static const char *TRUSTED_SETUP_NOT_LOADED = "Trusted Setup is not loaded.";
|
||||||
KZGSettings *settings;
|
KZGSettings *settings;
|
||||||
|
|
||||||
void reset_trusted_setup()
|
void reset_trusted_setup()
|
||||||
|
{
|
||||||
|
if (settings)
|
||||||
{
|
{
|
||||||
free_trusted_setup(settings);
|
free_trusted_setup(settings);
|
||||||
free(settings);
|
free(settings);
|
||||||
settings = NULL;
|
settings = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void throw_exception(JNIEnv *env, const char *message)
|
void throw_exception(JNIEnv *env, const char *message)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue