Modified return check from mmap call.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@714 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
ecbbc32762
commit
0aec7c648b
|
@ -149,7 +149,7 @@ void LocalCamera::Initialise()
|
|||
}
|
||||
|
||||
m_buffer = (unsigned char *)mmap(0, m_vmb.size, PROT_READ|PROT_WRITE, MAP_SHARED, m_videohandle,0);
|
||||
if( !((long)m_buffer > 0) )
|
||||
if( m_buffer == MAP_FAILED )
|
||||
{
|
||||
Error(( "Could not mmap video: %s", strerror(errno) ));
|
||||
exit(-1);
|
||||
|
|
Loading…
Reference in New Issue