Module Name: src
Committed By: mrg
Date: Wed Jun 22 03:57:47 UTC 2011
Modified Files:
src/dist/nvi/ex: ex_cscope.c
Log Message:
initialise from_cs[1] instead of from_cs[0] twice. from GCC 4.5.3.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/dist/nvi/ex/ex_cscope.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/nvi/ex/ex_cscope.c
diff -u src/dist/nvi/ex/ex_cscope.c:1.7 src/dist/nvi/ex/ex_cscope.c:1.8
--- src/dist/nvi/ex/ex_cscope.c:1.7 Mon Mar 21 14:53:03 2011
+++ src/dist/nvi/ex/ex_cscope.c Wed Jun 22 03:57:46 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ex_cscope.c,v 1.7 2011/03/21 14:53:03 tnozaki Exp $ */
+/* $NetBSD: ex_cscope.c,v 1.8 2011/06/22 03:57:46 mrg Exp $ */
/*-
* Copyright (c) 1994, 1996
@@ -379,7 +379,7 @@
* Cscope reads from to_cs[0] and writes to from_cs[1]; vi reads from
* from_cs[0] and writes to to_cs[1].
*/
- to_cs[0] = to_cs[1] = from_cs[0] = from_cs[0] = -1;
+ to_cs[0] = to_cs[1] = from_cs[0] = from_cs[1] = -1;
if (pipe(to_cs) < 0 || pipe(from_cs) < 0) {
msgq(sp, M_SYSERR, "pipe");
goto err;