V546 Member of a class is initialized by itself: ‘entry(entry)’. PoolWithFailoverBase.h 74

CWE-665: Improper Initialization

struct TryResult
  explicit TryResult(Entry entry_)
      : entry(std::move(entry))       
      , is_usable(true)
      , is_up_to_date(true)
  Entry entry;

Due to typos, entry member is initializing itself and as a result it actually remains uninitialized. To fix the code, you must add the underscore symbol correctly:

: entry(std::move(entry_))

Please click here to see more bugs from this project.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.