diff options
author | jilles <jilles@FreeBSD.org> | 2015-04-26 21:34:55 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2015-04-26 21:34:55 +0000 |
commit | 9038472054a4dcaa900aea0c322c3b3d03251d78 (patch) | |
tree | a2b0d6dfd55b3654f0314d9cdc706bcd934027bb /usr.bin/hexdump | |
parent | 8777a4e32f713e0f42c4c17fcfeb138ffd8f1d14 (diff) | |
download | FreeBSD-src-9038472054a4dcaa900aea0c322c3b3d03251d78.zip FreeBSD-src-9038472054a4dcaa900aea0c322c3b3d03251d78.tar.gz |
hexdump: Don't use uninitialized struct stat.
Diffstat (limited to 'usr.bin/hexdump')
-rw-r--r-- | usr.bin/hexdump/display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/hexdump/display.c b/usr.bin/hexdump/display.c index a5f2a47..4ff3308 100644 --- a/usr.bin/hexdump/display.c +++ b/usr.bin/hexdump/display.c @@ -380,7 +380,7 @@ doskip(const char *fname, int statok) return; } } - if (S_ISREG(sb.st_mode)) { + if (statok && S_ISREG(sb.st_mode)) { if (fseeko(stdin, skip, SEEK_SET)) err(1, "%s", fname); address += skip; |