Skip to content
Snippets Groups Projects

inspect-library: Treat "-" as meaning stdin

Merged Simon McVittie requested to merge wip/smcv/inspect-library-stdin into master
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
+ 5
1
@@ -125,7 +125,11 @@ main (int argc,
if (argc == 3)
{
fp = fopen(argv[2], "r");
if (strcmp(argv[2], "-") == 0)
fp = stdin;
else
fp = fopen(argv[2], "r");
if (fp == NULL)
{
int saved_errno = errno;
Loading