From e785d3b2118e837166214e6049c40c48abeffa36 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sat, 21 Feb 2009 11:52:27 +0000 Subject: [PATCH] merge bug-fix components of r9106: Fix a minor bug, whereby a stack entry of zero would cause a "(heap allocation functions)" line to be written. git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@9210 --- massif/ms_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/massif/ms_main.c b/massif/ms_main.c index 8e6d898e26..a6062fcaaa 100644 --- a/massif/ms_main.c +++ b/massif/ms_main.c @@ -1925,7 +1925,7 @@ static void pp_snapshot_SXPt(Int fd, SXPt* sxpt, Int depth, Char* depth_str, switch (sxpt->tag) { case SigSXPt: // Print the SXPt itself. - if (sxpt->Sig.ip == 0) { + if (0 == depth) { ip_desc = "(heap allocation functions) malloc/new/new[], --alloc-fns, etc."; } else { -- 2.47.2