better fix for showmap

This commit is contained in:
van Hauser
2020-04-27 22:11:58 +02:00
parent 087c368242
commit fbd9994f6f

View File

@ -871,7 +871,7 @@ int main(int argc, char **argv_orig, char **envp) {
fsrv->out_fd = open(stdin_file, O_RDWR | O_CREAT | O_EXCL, 0600); fsrv->out_fd = open(stdin_file, O_RDWR | O_CREAT | O_EXCL, 0600);
if (fsrv->out_fd < 0) { PFATAL("Unable to create '%s'", out_file); } if (fsrv->out_fd < 0) { PFATAL("Unable to create '%s'", out_file); }
if (use_argv[arg_offset] != stdin_file) { if (arg_offset && use_argv[arg_offset] != stdin_file) {
use_argv[arg_offset] = strdup(stdin_file); use_argv[arg_offset] = strdup(stdin_file);