Skip to content
Snippets Groups Projects
Commit 3e7e9536 authored by Ludovico de Nittis's avatar Ludovico de Nittis :palm_tree:
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
Branches
Tags
1 merge request!19inspect-library: Treat "-" as meaning stdin
Pipeline #1288 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment