src: rework mem_clear()

This commit is contained in:
Markus F.X.J. Oberhumer
2023-06-09 18:20:06 +02:00
parent 19e84fea62
commit 75e87a58da
15 changed files with 54 additions and 56 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ std::mutex opt_lock_mutex;
void Options::reset() noexcept {
Options *const o = this;
mem_clear(o, sizeof(*o));
mem_clear(o);
o->crp.reset();
o->cmd = CMD_NONE;