diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-07-09 20:01:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-07-09 20:01:32 +0000 |
commit | 4d8bbf4aef6796dd69ada71cb58bf399f4fb46a6 (patch) | |
tree | f83fca888caabe16f3d8fe245cdf2379ecaf3fe6 | |
parent | af7c037fee009e99552f1590094f367a9d79bda9 (diff) |
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); |