diff options
author | 2003-07-09 20:01:31 +0000 | |
---|---|---|
committer | 2003-07-09 20:01:31 +0000 | |
commit | 4d32d0f0689cf20132bd3a12654daac695084cdd (patch) | |
tree | 494f470e2d6a5926d8456774243d42ed689af599 | |
parent | sync (diff) | |
download | wireguard-openbsd-4d32d0f0689cf20132bd3a12654daac695084cdd.tar.xz wireguard-openbsd-4d32d0f0689cf20132bd3a12654daac695084cdd.zip |
Fix double free; eric jackson
-rw-r--r-- | usr.bin/vi/ex/ex_cscope.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/vi/ex/ex_cscope.c b/usr.bin/vi/ex/ex_cscope.c index 4ae8095a0c2..bdd11124079 100644 --- a/usr.bin/vi/ex/ex_cscope.c +++ b/usr.bin/vi/ex/ex_cscope.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ex_cscope.c,v 1.9 2002/06/12 06:07:16 mpech Exp $ */ +/* $OpenBSD: ex_cscope.c,v 1.10 2003/07/09 20:01:31 millert Exp $ */ /*- * Copyright (c) 1994, 1996 @@ -271,10 +271,8 @@ cscope_add(sp, cmdp, dname) LIST_INSERT_HEAD(&exp->cscq, csc, q); /* Read the initial prompt from the cscope to make sure it's okay. */ - if (read_prompt(sp, csc)) { - terminate(sp, csc, 0); + if (read_prompt(sp, csc)) return (1); - } return (0); |