From 5d0d745174f66c31d63c6ed73d92ae9177d754f3 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Sun, 25 May 2008 11:28:39 +0000 Subject: * src/itdb_device.c: don't insert NULL firewire IDs in the SysInfo hash table git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1983 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- src/itdb_device.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/itdb_device.c') diff --git a/src/itdb_device.c b/src/itdb_device.c index 4f3fe50..0f86c57 100644 --- a/src/itdb_device.c +++ b/src/itdb_device.c @@ -452,8 +452,10 @@ static void itdb_device_read_sysinfo_extended (Itdb_Device *device) 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)); + } } } -- cgit