Allow -f - to read from stdin.
This commit is contained in:
parent
041b2de9cc
commit
0d2181d9ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299995
@ -298,8 +298,9 @@ main(int argc, char *argv[])
|
|||||||
m = malloc(size = 1025);
|
m = malloc(size = 1025);
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
errx(1, "%s", strerror(ENOMEM));
|
errx(1, "%s", strerror(ENOMEM));
|
||||||
if (!freopen(tracefile, "r", stdin))
|
if (strcmp(tracefile, "-"))
|
||||||
err(1, "%s", tracefile);
|
if (!freopen(tracefile, "r", stdin))
|
||||||
|
err(1, "%s", tracefile);
|
||||||
|
|
||||||
strerror_init();
|
strerror_init();
|
||||||
localtime_init();
|
localtime_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user