]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix compiler warning.
authorTom Hughes <tom@compton.nu>
Tue, 19 Jul 2005 15:28:31 +0000 (15:28 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 19 Jul 2005 15:28:31 +0000 (15:28 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4190

coregrind/m_syswrap/syswrap-generic.c

index 64344a4597762e6b169d00ce63259e3cdcfadec3..628249f465c5eabaf9dfc8dec5cf427442c3d850 100644 (file)
@@ -2333,7 +2333,7 @@ PRE(sys_execve)
    // stage1/2 will set up the appropriate client environment.
    // Nb: we make a copy of the environment before trying to mangle it
    // as it might be in read-only memory (this was bug #101881).
-   if (ARG3 != NULL) {
+   if (ARG3 != 0) {
       envp = VG_(env_clone)( (Char**)ARG3 );
       VG_(env_remove_valgrind_env_stuff)( envp );
    }