13
0

Prevent undo transaction crashes in optimized builds

Worst case this will lead to undo operations not being
saved rather than segfault (debug builds will still assert).
This commit is contained in:
Robin Gareus 2022-11-02 00:44:48 +01:00
parent 32d2b371c1
commit 292cff7cfc
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -3344,6 +3344,9 @@ Session::commit_reversible_command (Command *cmd)
{
assert (_current_trans);
assert (!_current_trans_quarks.empty ());
if (!_current_trans) {
return;
}
struct timeval now;