Allow -f - to read from stdin.
This commit is contained in:
parent
eb431f83e1
commit
4610bb56c2
@ -298,8 +298,9 @@ main(int argc, char *argv[])
|
||||
m = malloc(size = 1025);
|
||||
if (m == NULL)
|
||||
errx(1, "%s", strerror(ENOMEM));
|
||||
if (!freopen(tracefile, "r", stdin))
|
||||
err(1, "%s", tracefile);
|
||||
if (strcmp(tracefile, "-"))
|
||||
if (!freopen(tracefile, "r", stdin))
|
||||
err(1, "%s", tracefile);
|
||||
|
||||
strerror_init();
|
||||
localtime_init();
|
||||
|
Loading…
Reference in New Issue
Block a user