[vlc-devel] commit: Sqlite: Typo in testing for threadsafeness (Srikanth Raju )

git version control git at videolan.org
Mon Dec 28 00:34:02 CET 2009


vlc | branch: master | Srikanth Raju <srikiraju at gmail.com> | Fri Dec 18 00:02:13 2009 +0530| [396df1b5c3c28f60afa30082d75a3be8085024f7] | committer: Jean-Baptiste Kempf 

Sqlite: Typo in testing for threadsafeness

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=396df1b5c3c28f60afa30082d75a3be8085024f7
---

 modules/misc/sqlite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/sqlite.c b/modules/misc/sqlite.c
index 6b47b1c..5b89a29 100644
--- a/modules/misc/sqlite.c
+++ b/modules/misc/sqlite.c
@@ -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;




More information about the vlc-devel mailing list