Permalink
Browse files

Return value of ioctl wasn't being checked in JoystickMenuThread::Ini…

…t(), caught by Coverity.
  • Loading branch information...
stuartm committed May 10, 2012
1 parent 53c2234 commit 64410be28bd031d0979fb4197a4c73344bd697ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythui/jsmenu.cpp
@@ -112,7 +112,7 @@ int JoystickMenuThread::Init(QString &config_file)
return(rc);
}
- ioctl(m_fd, JSIOCGBUTTONS, &m_buttonCount);
+ rc = ioctl(m_fd, JSIOCGBUTTONS, &m_buttonCount);
if (rc == -1)
{
LOG(VB_GENERAL, LOG_ERR, LOC +

0 comments on commit 64410be

Please sign in to comment.