]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Explicitly zero CCs. It's already being done by VG_(OSet_AllocNode), but
authorNicholas Nethercote <njn@valgrind.org>
Mon, 2 Apr 2007 03:11:41 +0000 (03:11 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 2 Apr 2007 03:11:41 +0000 (03:11 +0000)
that's more by chance than design.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6691

cachegrind/cg_main.c

index b0768f77309ec43cd50f9b5737b2816f47a90c5e..d0ef0a1effb1056df9c223a5b3c3b6dfe8f18faf 100644 (file)
@@ -237,6 +237,15 @@ static LineCC* get_lineCC(Addr origAddr)
       lineCC->loc.file = get_perm_string(loc.file);
       lineCC->loc.fn   = get_perm_string(loc.fn);
       lineCC->loc.line = loc.line;
+      lineCC->Ir.a     = 0;
+      lineCC->Ir.m1    = 0;
+      lineCC->Ir.m2    = 0;
+      lineCC->Dr.a     = 0;
+      lineCC->Dr.m1    = 0;
+      lineCC->Dr.m2    = 0;
+      lineCC->Dw.a     = 0;
+      lineCC->Dw.m1    = 0;
+      lineCC->Dw.m2    = 0;
       VG_(OSet_Insert)(CC_table, lineCC);
    }