]> git.sesse.net Git - vlc/commitdiff
Sqlite: Typo in testing for threadsafeness
authorSrikanth Raju <srikiraju@gmail.com>
Thu, 17 Dec 2009 18:14:13 +0000 (23:44 +0530)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 27 Dec 2009 23:23:42 +0000 (00:23 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/misc/sqlite.c

index 6b47b1c5ba50d78d585f0d4c30c2e4bdefccf0af..5b89a29e761e49f85ca220b53e6cb1d59cb2c9a7 100644 (file)
@@ -209,7 +209,7 @@ static int OpenDatabase( sql_t *p_sql )
 {
     assert( p_sql->psz_host && *p_sql->psz_host );
 
-    if( sqlite3_threadsafe() != 0 )
+    if( sqlite3_threadsafe() == 0 )
     {
         msg_Err( p_sql, "Sqlite library on your system is not threadsafe" );
         return VLC_EGENERIC;