[gnome-bluetooth] properties: Fix segfault when uuids is NULL



commit 19b980b6bc67f48cac1efb8e9761467683d3facf
Author: Olivier Blin <dev blino org>
Date:   Fri Jul 29 23:04:01 2011 +0200

    properties: Fix segfault when uuids is NULL
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655659

 properties/cc-bluetooth-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/properties/cc-bluetooth-panel.c b/properties/cc-bluetooth-panel.c
index 4aad398..55197f9 100644
--- a/properties/cc-bluetooth-panel.c
+++ b/properties/cc-bluetooth-panel.c
@@ -309,7 +309,7 @@ cc_bluetooth_panel_update_properties (CcBluetoothPanel *self)
 			guint i;
 
 			uuids = (const char **) g_value_get_boxed (&value);
-			for (i = 0; uuids[i] != NULL; i++) {
+			for (i = 0; uuids && uuids[i] != NULL; i++) {
 				if (g_str_equal (uuids[i], "OBEXObjectPush"))
 					gtk_widget_show (WID ("send_box"));
 				else if (g_str_equal (uuids[i], "OBEXFileTransfer"))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]