changed initialization of numrefs - eduardo.
authorRobert R. Henry <rrh@ucbvax.Berkeley.EDU>
Tue, 14 Aug 1984 08:49:47 +0000 (00:49 -0800)
committerRobert R. Henry <rrh@ucbvax.Berkeley.EDU>
Tue, 14 Aug 1984 08:49:47 +0000 (00:49 -0800)
SCCS-vsn: contrib/bib/src/listrefs.c 2.4

usr/src/contrib/bib/src/listrefs.c

index 7ea3a32..1608869 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)listrefs.c 2.3     %G%";
+static char sccsid[] = "@(#)listrefs.c 2.4     %G%";
 #endif not lint
 /*
         Listrefs - list references for bib system
 #endif not lint
 /*
         Listrefs - list references for bib system
@@ -34,7 +34,7 @@ char reffile[] = TMPREFFILE;    /* temporary file (see bib.h) */
 struct refinfo refinfo[MAXLIST];      /* references temporary file, seek positions */
 struct refinfo *refshash[HASHSIZE];
 long int rend = 1;              /* last used position in reference file */
 struct refinfo refinfo[MAXLIST];      /* references temporary file, seek positions */
 struct refinfo *refshash[HASHSIZE];
 long int rend = 1;              /* last used position in reference file */
-int numrefs = -1;               /* number of references */
+int numrefs = 0;               /* number of references */
 extern int sort;                /* see if things are to be sorted */
 extern char bibfname[];
 extern int biblineno;
 extern int sort;                /* see if things are to be sorted */
 extern char bibfname[];
 extern int biblineno;