]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a comment explaining this test.
authorNicholas Nethercote <njn@valgrind.org>
Mon, 19 Jan 2009 21:33:25 +0000 (21:33 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 19 Jan 2009 21:33:25 +0000 (21:33 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8984

none/tests/execve.c

index 5f9766695608c861b6f4cf9db587be3c41a7f331..842df78b52b267ad4506d9210a8de356f2824e10 100644 (file)
@@ -6,6 +6,8 @@ int main(int argc, char **argv)
 {
    if (argc == 1)
    {
+      // This tests the case where argv and envp are NULL, which is easy to
+      // get wrong because it's an unusual case.
       if (execve(argv[0], NULL, NULL) < 0)
       {
          perror("execve");