error-decode: stdin is 0 not 1

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2010-12-10 15:31:59 +00:00
parent 94de0b46b5
commit 292ae4538a
+1 -1
View File
@@ -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) {