]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid bogus compiler warning.
authorNicholas Nethercote <njn@valgrind.org>
Sun, 8 May 2005 02:59:50 +0000 (02:59 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sun, 8 May 2005 02:59:50 +0000 (02:59 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3634

memcheck/mc_main.c

index 8299d83fe0e9559e4fe3ea1b5acd731ecceb5672..a301265bf2a4f92a481f525215e020e9db50d77a 100644 (file)
@@ -1105,7 +1105,7 @@ void mc_check_is_readable_asciiz ( CorePart part, ThreadId tid,
                                    Char* s, Addr str )
 {
    MC_ReadResult res;
-   Addr bad_addr;
+   Addr bad_addr = 0;   // shut GCC up
    /* VG_(message)(Vg_DebugMsg,"check is readable asciiz: 0x%x",str); */
 
    VGP_PUSHCC(VgpCheckMem);