diff options
Diffstat (limited to 'gdb/ser-mingw.c')
-rw-r--r-- | gdb/ser-mingw.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index 98b8368..6a883aa 100644 --- a/gdb/ser-mingw.c +++ b/gdb/ser-mingw.c @@ -818,12 +818,15 @@ pipe_windows_open (struct serial *scb, const char *name) struct pipe_state *ps; FILE *pex_stderr; - char **argv = buildargv (name); + if (name == NULL) + error_no_arg (_("child command")); + + char **argv = gdb_buildargv (name); struct cleanup *back_to = make_cleanup_freeargv (argv); + if (! argv[0] || argv[0][0] == '\0') error ("missing child command"); - ps = make_pipe_state (); make_cleanup (cleanup_pipe_state, ps); |