Skip to content

Commit

Permalink
Fixes keepassxreboot#940 : segfault when searching after merging
Browse files Browse the repository at this point in the history
  • Loading branch information
louib authored and TheZ3ro committed Sep 15, 2017
1 parent d59ca0a commit faf3619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,8 @@ void Group::resolveConflict(Entry* existingEntry, Entry* otherEntry)
if (timeExisting < timeOther) {
// only if other entry is newer, replace existing one
removeEntry(existingEntry);
addEntry(otherEntry->clone(Entry::CloneNoFlags));
clonedEntry = otherEntry->clone(Entry::CloneNoFlags);
clonedEntry->setGroup(this);
}

break;
Expand Down

0 comments on commit faf3619

Please sign in to comment.