aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-pipe.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-22 22:20:39 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-22 22:20:39 +0000
commit36662fde7b36c1effab525806db6f51d1356eb2b (patch)
tree32624d67dacc2f9cdbec1e078e55ad23f0ec57df /gdb/ser-pipe.c
parent642d8300fe08760ef796789be6cc7afc3a392d84 (diff)
downloadgdb-36662fde7b36c1effab525806db6f51d1356eb2b.zip
gdb-36662fde7b36c1effab525806db6f51d1356eb2b.tar.gz
gdb-36662fde7b36c1effab525806db6f51d1356eb2b.tar.bz2
* ser-pipe.c (pipe_open): Use proper null pointer in execl call.
* cli/cli-cmds.c (shell_escape): Likewise.
Diffstat (limited to 'gdb/ser-pipe.c')
-rw-r--r--gdb/ser-pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c
index 38f8e78..3e04973 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -98,7 +98,7 @@ pipe_open (struct serial *scb, const char *name)
for (old = pidlist; old; old = old->next)
close (fileno (old->fp)); /* don't allow a flush */
#endif
- execl ("/bin/sh", "sh", "-c", name, NULL);
+ execl ("/bin/sh", "sh", "-c", name, (char *) 0);
_exit (127);
}