Skip to content

CID 1508857: Uninitialized pointer field #10431

@maskit

Description

@maskit

http_stats.cc

 79struct HTTPStatsConfig {
   	
CID 1508857 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member cont is not initialized in this constructor nor in any functions that it calls.
 80  explicit HTTPStatsConfig() {}
 81
 82  ~HTTPStatsConfig() { TSContDestroy(cont); }
 83  std::string mimeType;
 84
 85  int maxAge            = 0;
 86  bool csv              = false;
 87  bool integer_counters = false;
 88  bool wrap_counters    = false;
 89
   	1. member_decl: Class member declaration for cont.
 90  TSCont cont;
 91};

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions