Skip to content
Snippets Groups Projects
Commit 3e7e9536 authored by Ludovico de Nittis's avatar Ludovico de Nittis
Browse files

Merge branch 'wip/smcv/inspect-library-stdin' into 'master'

inspect-library: Treat "-" as meaning stdin

See merge request steam/steam-runtime-tools!19
parents 00d5cd33 8fb99b99
No related branches found
No related tags found
1 merge request!19inspect-library: Treat "-" as meaning stdin
Pipeline #1288 passed
...@@ -125,7 +125,11 @@ main (int argc, ...@@ -125,7 +125,11 @@ main (int argc,
if (argc == 3) if (argc == 3)
{ {
fp = fopen(argv[2], "r"); if (strcmp(argv[2], "-") == 0)
fp = stdin;
else
fp = fopen(argv[2], "r");
if (fp == NULL) if (fp == NULL)
{ {
int saved_errno = errno; int saved_errno = errno;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment