mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
hexdump: Don't use uninitialized struct stat.
This commit is contained in:
parent
a5e0fa4063
commit
c321006086
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282041
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue