mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
initialize variables, WARNS=6 compliant
This commit is contained in:
parent
cc3c11f9c9
commit
f8c2d2bde1
3 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@ r_buf(FILE *fp)
|
|||
char *p;
|
||||
off_t enomem;
|
||||
|
||||
tl = NULL;
|
||||
#define BSZ (128 * 1024)
|
||||
for (mark = NULL, enomem = 0;;) {
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue