When errno is not set, do not use warn(3).
This commit is contained in:
parent
3fb61032c9
commit
b9125e9666
@ -244,7 +244,8 @@ dumpfs(const char *name)
|
||||
|
||||
err: libufs_printerror(&disk);
|
||||
ufs_disk_close(&disk);
|
||||
warn("%s", name);
|
||||
if (errno)
|
||||
warn("%s", name);
|
||||
return (1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user