Commit 292ae453 authored by Chris Wilson's avatar Chris Wilson 🤔

error-decode: stdin is 0 not 1

Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent 94de0b46
......@@ -327,7 +327,7 @@ main (int argc, char *argv[])
}
if (argc == 1) {
if (isatty(1)) {
if (isatty(0)) {
path = "/debug/dri/0";
err = stat (path, &st);
if (err != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment