mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
hexdump: Don't use uninitialized struct stat.
This commit is contained in:
parent
a5e0fa4063
commit
c321006086
1 changed files with 1 additions and 1 deletions
|
|
@ -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