summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-07-12 04:12:25 +0000
committerbde <bde@FreeBSD.org>1996-07-12 04:12:25 +0000
commit4c9b9ce103f19e9cf0ec1b8e6b5d05db44be4176 (patch)
tree779349387d8c1e223fa67195929cd05163410911 /sys/kern/kern_exec.c
parent214f4abc72a6e5fdfbd318b73ec1c66f7a9a826b (diff)
downloadFreeBSD-src-4c9b9ce103f19e9cf0ec1b8e6b5d05db44be4176.zip
FreeBSD-src-4c9b9ce103f19e9cf0ec1b8e6b5d05db44be4176.tar.gz
Don't use NULL in non-pointer contexts.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 137f9d2..cfe55e0 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_exec.c,v 1.42 1996/06/03 04:07:35 davidg Exp $
+ * $Id: kern_exec.c,v 1.43 1996/06/03 04:12:18 davidg Exp $
*/
#include <sys/param.h>
@@ -525,7 +525,7 @@ exec_copyout_strings(imgp)
}
/* a null vector table pointer seperates the argp's from the envp's */
- suword(vectp++, NULL);
+ suword(vectp++, 0);
suword(&arginfo->ps_envstr, (int)vectp);
suword(&arginfo->ps_nenvstr, envc);
@@ -541,7 +541,7 @@ exec_copyout_strings(imgp)
}
/* end of vector table is a null pointer */
- suword(vectp, NULL);
+ suword(vectp, 0);
return (stack_base);
}
OpenPOWER on IntegriCloud