We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3387044 commit 8ea298bCopy full SHA for 8ea298b
include/minisketch.h
@@ -239,7 +239,7 @@ class Minisketch
239
/** Make this Minisketch a clone of the specified one. */
240
Minisketch& operator=(const Minisketch& sketch) noexcept
241
{
242
- if (sketch.m_minisketch) {
+ if (this != &sketch && sketch.m_minisketch) {
243
m_minisketch = std::unique_ptr<minisketch, Deleter>(minisketch_clone(sketch.m_minisketch.get()));
244
}
245
return *this;
0 commit comments