Skip to content

Commit

Permalink
Merge pull request #129 from linksplatform/segfault_fix
Browse files Browse the repository at this point in the history
Fix segfault bug
  • Loading branch information
nassipkali authored Jul 9, 2023
2 parents cd5f958 + 90d2121 commit 63cf97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/Platform.Data/ILinksExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
typename TStorage::LinkAddressType deletedLinkAddress;
storage.Delete(restriction, [&deletedLinkAddress, $continue] (const typename TStorage::LinkType& before, const typename TStorage::LinkType& after)
{
deletedLinkAddress = after[0];
deletedLinkAddress = before[0];
return $continue;
});
return deletedLinkAddress;
Expand Down

0 comments on commit 63cf97d

Please sign in to comment.