Only try matching if the pointer could be resolved to a name.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3275 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_errcontext.c b/coregrind/vg_errcontext.c
index 5ca241b..7d1c4c9 100644
--- a/coregrind/vg_errcontext.c
+++ b/coregrind/vg_errcontext.c
@@ -987,12 +987,14 @@
vg_assert(su->callers[i].name != NULL);
switch (su->callers[i].ty) {
case ObjName:
- (void)VG_(get_objname)(a, caller_name, M_VG_ERRTXT);
+ if (!VG_(get_objname)(a, caller_name, M_VG_ERRTXT))
+ return False;
break;
case FunName:
// Nb: mangled names used in suppressions
- (void)VG_(get_fnname_nodemangle)(a, caller_name, M_VG_ERRTXT);
+ if (!VG_(get_fnname_nodemangle)(a, caller_name, M_VG_ERRTXT))
+ return False;
break;
default: VG_(tool_panic)("supp_matches_callers");
}