aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/screensize.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/sys/screensize.c')
-rw-r--r--com32/lib/sys/screensize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/screensize.c b/com32/lib/sys/screensize.c
index 340227cd..bcd4496c 100644
--- a/com32/lib/sys/screensize.c
+++ b/com32/lib/sys/screensize.c
@@ -14,7 +14,7 @@ int getscreensize(int fd, int *rows, int *cols)
*rows = fp->o.rows;
*cols = fp->o.cols;
- if (!rows || !cols) {
+ if (!*rows || !*cols) {
errno = ENOTTY;
return -1;
}