aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/screensize.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-11-27 21:13:45 +0000
committerMatt Fleming <matt.fleming@intel.com>2012-11-27 21:13:45 +0000
commitaffd61825f0502af0697d393aeb76ddf0a7a4fac (patch)
tree28be443968b3f1775bf21575272d4d584aaabec9 /com32/lib/sys/screensize.c
parentf3cac0e6203c532efc97a6ae8955fc4b79a2b373 (diff)
parente955e5c00a852883f6972e1a9bc304413ff79627 (diff)
downloadsyslinux-affd61825f0502af0697d393aeb76ddf0a7a4fac.tar.gz
syslinux-affd61825f0502af0697d393aeb76ddf0a7a4fac.tar.xz
syslinux-affd61825f0502af0697d393aeb76ddf0a7a4fac.zip
Merge branch 'coverity' into elflinksyslinux-5.00-pre11
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;
}