summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-07-09 20:01:32 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-07-09 20:01:32 +0000
commit4d8bbf4aef6796dd69ada71cb58bf399f4fb46a6 (patch)
treef83fca888caabe16f3d8fe245cdf2379ecaf3fe6
parentaf7c037fee009e99552f1590094f367a9d79bda9 (diff)
Fix double free; eric jackson
-rw-r--r--usr.bin/vi/ex/ex_cscope.c6
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);