Tom Hughes eab4171285 Fix compiler warnings by using a variable to hide the null pointer
from the compiler.

Patch from Bart Van Assche <bart.vanassche@gmail.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7317
2008-01-05 00:01:20 +00:00

12 lines
248 B
C

#include <assert.h>
#include <unistd.h>
int main ( int argc, char** argv, char** envp )
{
char* null_filename = NULL;
execve(null_filename, NULL, NULL);
execve("../../tests/true", NULL, envp);
assert(0); // shouldn't get here
}