hexdump: Don't use uninitialized struct stat.

This commit is contained in:
Jilles Tjoelker 2015-04-26 21:34:55 +00:00
parent a5e0fa4063
commit c321006086
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282041

View file

@ -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;