From 4c0e9b4fd525d46f527b3a2b8a195c9cbe37d94d Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 22 Jan 2004 22:20:39 +0000 Subject: * ser-pipe.c (pipe_open): Use proper null pointer in execl call. * cli/cli-cmds.c (shell_escape): Likewise. --- gdb/ser-pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ser-pipe.c') diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c index 38f8e78949a..3e04973f854 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); } -- cgit v1.2.1