Revision: 1983
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1983&view=rev
Author:   teuf
Date:     2008-05-25 04:28:39 -0700 (Sun, 25 May 2008)

Log Message:
-----------
* src/itdb_device.c: don't insert NULL firewire IDs in the SysInfo
hash table

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/src/itdb_device.c

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2008-05-25 11:27:27 UTC (rev 1982)
+++ libgpod/trunk/ChangeLog     2008-05-25 11:28:39 UTC (rev 1983)
@@ -1,5 +1,10 @@
 2008-05-25  Christophe Fergeau <teuf at gnome.org>
 
+       * src/itdb_device.c: don't insert NULL firewire IDs in the SysInfo
+       hash table
+
+2008-05-25  Christophe Fergeau <teuf at gnome.org>
+
        * configure.ac: rework libxml detection
        * src/Makefile.am: remove LIBXML_CFLAGS/LIBXML_LIBS since they are
        no longer used

Modified: libgpod/trunk/src/itdb_device.c
===================================================================
--- libgpod/trunk/src/itdb_device.c     2008-05-25 11:27:27 UTC (rev 1982)
+++ libgpod/trunk/src/itdb_device.c     2008-05-25 11:28:39 UTC (rev 1983)
@@ -452,8 +452,10 @@
     if ((device->sysinfo != NULL) && (device->sysinfo_extended != NULL)) {
         const char *fwid;
         fwid = itdb_sysinfo_properties_get_firewire_id 
(device->sysinfo_extended);
-        g_hash_table_insert (device->sysinfo, g_strdup ("FirewireGuid"),
-                             g_strdup (fwid));
+        if (fwid != NULL) {
+            g_hash_table_insert (device->sysinfo, g_strdup ("FirewireGuid"),
+                                 g_strdup (fwid));
+        }
     }
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to