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:
parent
32d2b371c1
commit
292cff7cfc
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user