hexify: bail if fopen failed
This commit is contained in:
parent
03e22eb823
commit
0b82c3cf75
@ -93,6 +93,7 @@ int main(int argc, char * argv[]) {
|
||||
name = argv[optind];
|
||||
if (!f) {
|
||||
fprintf(stderr, "%s: %s: %s\n", argv[0], argv[optind], strerror(errno));
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
name = "[stdin]";
|
||||
|
Loading…
Reference in New Issue
Block a user