diff options
author | Roland McGrath <roland@gnu.org> | 2002-11-20 06:05:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-11-20 06:05:03 +0000 |
commit | 03abf1f2c1719f61ba965b7be9654b21b6eef9d2 (patch) | |
tree | d623ec55cf98c2262dbc412dfec9cfee041cfaac /term | |
parent | 053071c65978ad441759082b203400230b0f6225 (diff) |
2002-11-19 Roland McGrath <roland@frob.com>
* main.c (parse_opt: case ARGP_KEY_SUCCESS): Set tty_arg along with
tty_type from new argument value.
Reported by David Walter <dwalter@syr.edu>.
Diffstat (limited to 'term')
-rw-r--r-- | term/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/term/main.c b/term/main.c index 730ef5b3..69248fb0 100644 --- a/term/main.c +++ b/term/main.c @@ -227,6 +227,8 @@ parse_opt (int opt, char *arg, struct argp_state *state) assert (! "impossible type"); break; } + free (tty_arg); + tty_arg = strdup (v->arg); error_t err = (*bottom->init) (); mutex_unlock (&global_lock); return err; |