summaryrefslogtreecommitdiff
path: root/bin/csh/func.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-25 04:41:26 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-25 04:41:26 +0000
commit1949c7f9a7cab4c3c7dcfcb2dd4e99c0267c6e89 (patch)
treeea8dce614c09fc35fff6e841b9017f4c637ef84f /bin/csh/func.c
parenta6b55aee56b75d1055400f67d632d15ec1eccb70 (diff)
fix obvious warnings.
Diffstat (limited to 'bin/csh/func.c')
-rw-r--r--bin/csh/func.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/csh/func.c b/bin/csh/func.c
index 16641a02fa1..f2bdff7b280 100644
--- a/bin/csh/func.c
+++ b/bin/csh/func.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: func.c,v 1.9 1998/12/16 17:54:32 deraadt Exp $ */
+/* $OpenBSD: func.c,v 1.10 2001/06/25 04:41:25 art Exp $ */
/* $NetBSD: func.c,v 1.11 1996/02/09 02:28:29 christos Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)func.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: func.c,v 1.9 1998/12/16 17:54:32 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: func.c,v 1.10 2001/06/25 04:41:25 art Exp $";
#endif
#endif /* not lint */
@@ -767,11 +767,12 @@ getword(wp)
c = readc(1);
if (c == '\\' && (c = readc(1)) == '\n')
c = ' ';
- if (c == '\'' || c == '"')
+ if (c == '\'' || c == '"') {
if (d == 0)
d = c;
else if (d == c)
d = 0;
+ }
if (c < 0)
goto past;
if (wp) {