summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-09-28 12:33:36 +0000
committerru <ru@FreeBSD.org>2006-09-28 12:33:36 +0000
commit32c63e8e58fdc1a779c9820865b629c4b300046e (patch)
tree3a4a0da5b9a87461390021ac17ed43b0d19c4e07 /tools
parent03e16bd83a38af3e2b2ecdc85b150d9dc818a24f (diff)
downloadFreeBSD-src-32c63e8e58fdc1a779c9820865b629c4b300046e.zip
FreeBSD-src-32c63e8e58fdc1a779c9820865b629c4b300046e.tar.gz
Initializate "offset" variable to zero; otherwise, if not using
the -o option, it might contain garbage. MFC after: 1 day
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/find-sb/Makefile2
-rw-r--r--tools/tools/find-sb/find-sb.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/tools/tools/find-sb/Makefile b/tools/tools/find-sb/Makefile
index b70e2c6..9a55be3 100644
--- a/tools/tools/find-sb/Makefile
+++ b/tools/tools/find-sb/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+
PROG= find-sb
NO_MAN=
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/tools/tools/find-sb/find-sb.c b/tools/tools/find-sb/find-sb.c
index 62554e8..fd4de42 100644
--- a/tools/tools/find-sb/find-sb.c
+++ b/tools/tools/find-sb/find-sb.c
@@ -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':
OpenPOWER on IntegriCloud