hexdump: Don't use uninitialized struct stat.

This commit is contained in:
jilles 2015-04-26 21:34:55 +00:00
parent 8777a4e32f
commit 9038472054

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;