From: <jc...@us...> - 2008-07-19 13:14:09
|
Revision: 2055 http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2055&view=rev Author: jcsjcs Date: 2008-07-19 13:14:13 +0000 (Sat, 19 Jul 2008) Log Message: ----------- * src/itdb_device.c (itdb_device_set_timezone_info): avoid g_stat on NULL filename. Thanks to Andrea. Modified Paths: -------------- libgpod/trunk/ChangeLog libgpod/trunk/src/itdb_device.c Modified: libgpod/trunk/ChangeLog =================================================================== --- libgpod/trunk/ChangeLog 2008-07-19 08:57:02 UTC (rev 2054) +++ libgpod/trunk/ChangeLog 2008-07-19 13:14:13 UTC (rev 2055) @@ -1,5 +1,10 @@ -2008-0-18 Jorg Schuler <jcsjcs at users.sourceforge.net> +2008-07-18 Jorg Schuler <jcsjcs at users.sourceforge.net> + * src/itdb_device.c (itdb_device_set_timezone_info): avoid g_stat + on NULL filename. Thanks to Andrea. + +2008-07-18 Jorg Schuler <jcsjcs at users.sourceforge.net> + * src/itdb_device.c: assume the following generations do not support sparse artwork: ITDB_IPOD_GENERATION_NANO_1: Modified: libgpod/trunk/src/itdb_device.c =================================================================== --- libgpod/trunk/src/itdb_device.c 2008-07-19 08:57:02 UTC (rev 2054) +++ libgpod/trunk/src/itdb_device.c 2008-07-19 13:14:13 UTC (rev 2055) @@ -1445,6 +1445,11 @@ device->timezone_shift = get_local_timezone (); prefs_path = get_preferences_path (device); + + if (!prefs_path) { + return; + } + status = g_stat (prefs_path, &stat_buf); if (status != 0) { g_free (prefs_path); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |