From: Nicholas Nethercote Date: Mon, 29 Nov 2004 16:05:54 +0000 (+0000) Subject: very minor tweaks X-Git-Tag: svn/VALGRIND_3_0_0~1177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121ce56af3dee1db255a2eaed44123fc20a09b59;p=thirdparty%2Fvalgrind.git very minor tweaks git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3141 --- diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index 3e17a5a81e..0656b9df8e 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -1364,9 +1364,8 @@ static void load_client(char* cl_argv[], const char* exec, Int need_help, if (need_help) { VG_(clexecfd) = -1; - // Set the minimal number of entries in 'info' to continue. - info->interp_name = NULL; - info->interp_args = NULL; + // Totally zero 'info' before continuing. + VG_(memset)(info, 0, sizeof(*info)); } else { Int ret; VG_(clexecfd) = VG_(open)(exec, VKI_O_RDONLY, VKI_S_IRUSR); diff --git a/coregrind/vg_transtab.c b/coregrind/vg_transtab.c index 72ad0c0666..8e4ff14887 100644 --- a/coregrind/vg_transtab.c +++ b/coregrind/vg_transtab.c @@ -451,6 +451,7 @@ void VG_(sanity_check_tt_tc) ( Char* who ) if (tte->orig_addr == VG_TTE_EMPTY) continue; /* all others should agree with the TC entry. */ tce = tte->tcentry; + // XXX: 64-bit cleanness: should this be IS_WORD_ALIGNED_ADDR? vg_assert(IS_ALIGNED4_ADDR(tce)); /* does this point into a valid TC sector? */ for (s = 0; s < VG_TC_N_SECTORS; s++)