Initializate "offset" variable to zero; otherwise, if not using

the -o option, it might contain garbage.

MFC after:	1 day
This commit is contained in:
Ruslan Ermilov 2006-09-28 12:33:36 +00:00
parent 050596b4a0
commit 3b9de5ed0c
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# $FreeBSD$
PROG= find-sb
NO_MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -38,6 +38,7 @@ main(int argc, char **argv)
char c;
intmax_t offset;
offset = 0;
while ((c = getopt(argc, argv, "o:")) != -1) {
switch (c) {
case 'o':