Fix "Uninitialized struct member" cppcheck error
authorAnton Anikin <anton.anikin@htower.ru>
Mon, 6 Mar 2017 02:20:13 +0000 (10:20 +0800)
committerAnton Anikin <anton.anikin@htower.ru>
Mon, 6 Mar 2017 02:20:13 +0000 (10:20 +0800)
Reviewers: mwolff

Reviewed By: mwolff

Differential Revision: https://phabricator.kde.org/D4888

src/analyze/accumulatedtracedata.h

index 4833653..42ae9fa 100644 (file)
@@ -72,7 +72,7 @@ struct Allocation : public AllocationData
  */
 struct AllocationInfo
 {
-    uint64_t size;
+    uint64_t size = 0;
     TraceIndex traceIndex;
     bool operator==(const AllocationInfo& rhs) const
     {