A typo
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.