summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2008-05-25 11:28:39 +0000
committerChristophe Fergeau <teuf@gnome.org>2008-05-25 11:28:39 +0000
commit1fa87513839850a16aeef80a09a41efed7e065ec (patch)
treed4433aa84d0740d4c3501e7e6260c1efbdc01e25 /src
parent6b4ad64fd409d4ae5a2aee7565d2ff26ec234b11 (diff)
downloadlibgpod-1fa87513839850a16aeef80a09a41efed7e065ec.tar.gz
libgpod-1fa87513839850a16aeef80a09a41efed7e065ec.tar.xz
libgpod-1fa87513839850a16aeef80a09a41efed7e065ec.zip
* 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
Diffstat (limited to 'src')
-rw-r--r--src/itdb_device.c6
1 files changed, 4 insertions, 2 deletions
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));
+ }
}
}