]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Er, actually make this test meaningful. It now aborts correctly if you try to
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 26 Jul 2004 11:11:56 +0000 (11:11 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Mon, 26 Jul 2004 11:11:56 +0000 (11:11 +0000)
launch stage2 directly, rather than giving an obscure error about the tool
later on.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2527

coregrind/vg_main.c

index a8a09b5cf2f2dca37393b6d6ad93748155373458..9b5bd8177ec47a09a219ff04e2479915e746a071 100644 (file)
@@ -473,8 +473,8 @@ static void scan_auxv(void)
         break;
       }
 
-   if ( ! (1|2) ) {
-      fprintf(stderr, "stage2 must be launched by stage1\n");
+   if ( found != (1|2) ) {
+      fprintf(stderr, "valgrind: stage2 must be launched by stage1\n");
       exit(127);
    }
 }