diff options
-rw-r--r-- | tdm/backend/ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdm/backend/ctrl.c b/tdm/backend/ctrl.c index cc9540745..200b7056b 100644 --- a/tdm/backend/ctrl.c +++ b/tdm/backend/ctrl.c @@ -592,7 +592,7 @@ processCtrl( const char *string, int len, int fd, struct display *d ) } else if (fd >= 0 && !strcmp( ar[0], "activevt" )) { #ifdef HAVE_VTS Reply( "ok" ); - int vt_fd = getfd(NULL); + int vt_fd = getfd(); if (vt_fd > 0) { struct vt_stat vtstat; if (!ioctl(vt_fd, VT_GETSTATE, &vtstat)) { |