Fixed last fix.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@460 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
882f68067c
commit
79baec3d87
|
@ -30,7 +30,7 @@ void zmDbConnect( const char *user, const char*pass )
|
||||||
fprintf( stderr, "Can't initialise structure: %s\n", mysql_error( &dbconn ) );
|
fprintf( stderr, "Can't initialise structure: %s\n", mysql_error( &dbconn ) );
|
||||||
exit( mysql_errno( &dbconn ) );
|
exit( mysql_errno( &dbconn ) );
|
||||||
}
|
}
|
||||||
if ( !mysql_real_connect( &dbconn, ZM_DB_SERVER, user, pass ) )
|
if ( !mysql_real_connect( &dbconn, ZM_DB_SERVER, user, pass, 0, 0, 0, 0 ) )
|
||||||
{
|
{
|
||||||
fprintf( stderr, "Can't connect to server: %s\n", mysql_error( &dbconn ) );
|
fprintf( stderr, "Can't connect to server: %s\n", mysql_error( &dbconn ) );
|
||||||
exit( mysql_errno( &dbconn ) );
|
exit( mysql_errno( &dbconn ) );
|
||||||
|
|
Loading…
Reference in New Issue