fix coverity #910690
This commit is contained in:
1 parent
2d43d4c021
commit
bf082caab7
1 file changed
+4
-2
@@ -47,8 +47,10 @@ void crypto1_init(struct Crypto1State *state, uint64_t key) {
|
||||
}
|
||||
|
||||
void crypto1_deinit(struct Crypto1State *state) {
|
||||
state->odd = 0;
|
||||
state->even = 0;
|
||||
if (state) {
|
||||
state->odd = 0;
|
||||
state->even = 0;
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(__arm__) || defined(__linux__) || defined(_WIN32) || defined(__APPLE__) // bare metal ARM Proxmark lacks calloc()/free()
|
||||
|
||||
Reference in new issue
Block a user