commit d9cb20934c22475461352f5b428e246a379ed55c
Author: Christophe Fergeau <[email protected]>
Date:   Mon Oct 19 16:33:59 2009 +0200

    handle NULL return value from itdb_device_get_uuid

 src/itdb_hash72.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/itdb_hash72.c b/src/itdb_hash72.c
index 1eed783..23a7802 100644
--- a/src/itdb_hash72.c
+++ b/src/itdb_hash72.c
@@ -115,6 +115,9 @@ static gboolean get_uuid (const Itdb_Device *device, 
unsigned char uuid[20])
     int result;
 
     uuid_str = itdb_device_get_uuid (device);
+    if (uuid_str == NULL) {
+       return FALSE;
+    }
     result = string_to_hex (uuid, sizeof (uuid), uuid_str);
 
     return (result == 0);

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to