summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/intel_error_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index e21b8391..f85b8651 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -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) {