commit 628e127011c0eebb81ce08cea3fa1678e1cd0aa1
Author: Christophe Fergeau <t...@gnome.org>
Date:   Sun Oct 10 17:56:10 2010 +0200

    fix inverted test in HashInfo generation
    
    A test to check if HashInfo generation is needed or not wasn't not
    properly negated, which means we were generating HashInfo files
    in cases when it was not needed (eg non-hash72 iOS devices).

 src/itdb_hash72.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/itdb_hash72.c b/src/itdb_hash72.c
index cf4314f..f158e1e 100644
--- a/src/itdb_hash72.c
+++ b/src/itdb_hash72.c
@@ -278,7 +278,7 @@ gboolean itdb_hash72_extract_hash_info (const Itdb_Device 
*device,
     struct Hash78Info *hash_info;
 
     if ((itdb_device_get_checksum_type (device) != ITDB_CHECKSUM_HASH72)
-                   && (!itdb_device_supports_sqlite_db (device))) {
+                   || (!itdb_device_supports_sqlite_db (device))) {
            /* No need to generate a HashInfo file */
            return FALSE;
     }

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to