MFC r282041: hexdump: Don't use uninitialized struct stat.

PR:		196194
This commit is contained in:
jilles 2015-05-10 21:26:07 +00:00
parent f5cf32d13f
commit 64ba14eeb3

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;