]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
very minor tweaks
authorNicholas Nethercote <njn@valgrind.org>
Mon, 29 Nov 2004 16:05:54 +0000 (16:05 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 29 Nov 2004 16:05:54 +0000 (16:05 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3141

coregrind/vg_main.c
coregrind/vg_transtab.c

index 3e17a5a81efde80f833e54bac934d7fd5bffd8c0..0656b9df8ed4a28edf58792890cd720399035289 100644 (file)
@@ -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);
index 72ad0c06660786dccc2abf5f6cd89a83da904295..8e4ff14887d3c2074ede2126ccf37d4d11ff334f 100644 (file)
@@ -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++)