diff options
author | pfg <pfg@FreeBSD.org> | 2015-07-01 15:03:49 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-07-01 15:03:49 +0000 |
commit | 517a5ffe96e74555736a6a797879390fe59f18ba (patch) | |
tree | 416b5593e53591e239e1b9a3665d532e3dff7aa5 /usr.sbin/dconschat/dconschat.c | |
parent | 3a7588b223c14c50f02b5602c35a8f73b6d93a2b (diff) | |
download | FreeBSD-src-517a5ffe96e74555736a6a797879390fe59f18ba.zip FreeBSD-src-517a5ffe96e74555736a6a797879390fe59f18ba.tar.gz |
MFC 284913:
dconschat(8): Use NULL instead of 0 for the last argument in execl(3)
Found while experimenting with the gcc sentinel attribute.
Diffstat (limited to 'usr.sbin/dconschat/dconschat.c')
-rw-r--r-- | usr.sbin/dconschat/dconschat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/dconschat/dconschat.c b/usr.sbin/dconschat/dconschat.c index af35e01..dba568a 100644 --- a/usr.sbin/dconschat/dconschat.c +++ b/usr.sbin/dconschat/dconschat.c @@ -229,7 +229,7 @@ dconschat_fork_gdb(struct dcons_state *dc, struct dcons_port *p) snprintf(buf, 256, "\n[fork %s]\n", com); write(p->outfd, buf, strlen(buf)); - execl("/bin/sh", "/bin/sh", "-c", com, 0); + execl("/bin/sh", "/bin/sh", "-c", com, NULL); snprintf(buf, 256, "\n[fork failed]\n"); write(p->outfd, buf, strlen(buf)); |