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:
parent
050596b4a0
commit
3b9de5ed0c
@ -1,5 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= find-sb
|
||||
NO_MAN=
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user