initialize variables, WARNS=6 compliant

This commit is contained in:
Philippe Charnier 2007-11-02 18:06:51 +00:00
parent cc3c11f9c9
commit f8c2d2bde1
3 changed files with 3 additions and 1 deletions

View file

@ -150,7 +150,7 @@ lines(FILE *fp, off_t off)
if ((llines = malloc(off * sizeof(*llines))) == NULL)
err(1, "malloc");
bzero(llines, off * sizeof(*llines));
sp = NULL;
p = sp = NULL;
blen = cnt = recno = wrap = 0;
rc = 0;

View file

@ -197,6 +197,7 @@ r_buf(FILE *fp)
char *p;
off_t enomem;
tl = NULL;
#define BSZ (128 * 1024)
for (mark = NULL, enomem = 0;;) {
/*

View file

@ -114,6 +114,7 @@ main(int argc, char *argv[])
obsolete(argv);
style = NOTSET;
off = 0;
while ((ch = getopt(argc, argv, "Fb:c:fn:qr")) != -1)
switch(ch) {
case 'F': /* -F is superset of (and implies) -f */