summaryrefslogtreecommitdiff
path: root/bin/ls/stat_flags.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-02-14 19:58:11 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-02-14 19:58:11 +0000
commit5fc066e53bfb634aa5e242388254d45cfcd64a4d (patch)
treee263237de1208a442e4162f3eff93c3a850881e9 /bin/ls/stat_flags.c
parent0bc96222c206ba8dbc13dd4c549a56e44bbbe2a6 (diff)
Don't retain "clear" state after an argument as been processed;
andreas@infosys.heitec.net
Diffstat (limited to 'bin/ls/stat_flags.c')
-rw-r--r--bin/ls/stat_flags.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ls/stat_flags.c b/bin/ls/stat_flags.c
index 01fe36384df..17d34fba3eb 100644
--- a/bin/ls/stat_flags.c
+++ b/bin/ls/stat_flags.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stat_flags.c,v 1.2 1996/06/23 14:20:21 deraadt Exp $ */
+/* $OpenBSD: stat_flags.c,v 1.3 1999/02/14 19:58:10 millert Exp $ */
/* $NetBSD: stat_flags.c,v 1.5 1995/09/07 06:43:01 jtc Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)stat_flags.c 8.2 (Berkeley) 7/28/94";
#else
-static char rcsid[] = "$OpenBSD: stat_flags.c,v 1.2 1996/06/23 14:20:21 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: stat_flags.c,v 1.3 1999/02/14 19:58:10 millert Exp $";
#endif
#endif /* not lint */
@@ -112,13 +112,13 @@ string_to_flags(stringp, setp, clrp)
int clear;
char *string, *p;
- clear = 0;
if (setp)
*setp = 0;
if (clrp)
*clrp = 0;
string = *stringp;
while ((p = strsep(&string, "\t ,")) != NULL) {
+ clear = 0;
*stringp = p;
if (*p == '\0')
continue;