diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-09-12 04:39:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-09-12 04:39:33 +0000 |
commit | 0eba000db210ec27df93ffaa2b9c4a8ce3dcfc68 (patch) | |
tree | 8df7a97d82683f1aeecb7517b362bbec2c264ae2 /bin/pdksh/lex.c | |
parent | aa3023ab37fbabfe1db444325fc46098d6d44d58 (diff) |
Avoid longjmp/vfork clobbering.
Diffstat (limited to 'bin/pdksh/lex.c')
-rw-r--r-- | bin/pdksh/lex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/pdksh/lex.c b/bin/pdksh/lex.c index 4be7b5e5e53..5db0c81accd 100644 --- a/bin/pdksh/lex.c +++ b/bin/pdksh/lex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lex.c,v 1.9 1997/09/01 18:30:08 deraadt Exp $ */ +/* $OpenBSD: lex.c,v 1.10 1997/09/12 04:39:32 millert Exp $ */ /* * lexical analysis and source input @@ -1035,7 +1035,9 @@ set_prompt(to, s) struct shf *shf; char *ps1; Area *saved_atemp; - +#ifdef __GNUC__ + (void)&ps1; +#endif ps1 = str_val(global("PS1")); shf = shf_sopen((char *) 0, strlen(ps1) * 2, SHF_WR | SHF_DYNAMIC, (struct shf *) 0); |