|
From: <sv...@va...> - 2008-06-04 09:07:44
|
Author: sewardj
Date: 2008-06-04 10:07:36 +0100 (Wed, 04 Jun 2008)
New Revision: 8181
Log:
Followup to r8178: don't segfault if VG_(clo_log_name) is NULL.
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2008-06-04 07:04:12 UTC (rev 8180)
+++ trunk/coregrind/m_main.c 2008-06-04 09:07:36 UTC (rev 8181)
@@ -854,7 +854,8 @@
VG_(message)(Vg_UserMsg, "<pid>%d</pid>", VG_(getpid)());
VG_(message)(Vg_UserMsg, "<ppid>%d</ppid>", VG_(getppid)());
VG_(message)(Vg_UserMsg, "<tool>%t</tool>", toolname);
- print_file_vars(VG_(clo_log_name));
+ if (VG_(clo_log_name))
+ print_file_vars(VG_(clo_log_name));
if (VG_(clo_xml_user_comment)) {
/* Note: the user comment itself is XML and is therefore to
be passed through verbatim (%s) rather than escaped
|