Thanks to visit codestin.com
Credit goes to github.com

Skip to content

c_src/bloom_filter.hpp:74: bad operator = ? #16

@dcb314

Description

@dcb314

c_src/bloom_filter.hpp:74]: (warning) 'operator=' should check for assignment to self to avoid problems with dynamic memory.

Source code is

bloom_filter& operator = (const bloom_filter& filter)
{
salt_count_ = filter.salt_count_;
table_size_ = filter.table_size_;

There should be a check first for this != &filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions