From e3c5900e9ceaef5367fbd367187de15835ab0798 Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 22 Apr 2003 09:29:54 +0000 Subject: re-initiate counter git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@807 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/util/bbsctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pttbbs/util/bbsctl.c b/pttbbs/util/bbsctl.c index 998cd98c..8daa89c3 100644 --- a/pttbbs/util/bbsctl.c +++ b/pttbbs/util/bbsctl.c @@ -226,6 +226,7 @@ int permreport(int argc, char **argv) return 1; } for( count = i = 0 ; check[i].perm != 0 ; ++i ){ + count = 0; lseek(fd, 0, SEEK_SET); printf("%s\n", check[i].desc); while( read(fd, &usr, sizeof(usr)) > 0 ){ -- cgit v1.2.3