hexify: bail if fopen failed

This commit is contained in:
K. Lange 2021-08-31 16:50:45 +09:00
parent 03e22eb823
commit 0b82c3cf75

View File

@ -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]";