[gnome-bluetooth] Bug 584218 – applet is crashing when setting my adapter up



commit a15322741e7ab73e386d36b5190f2c2faaff87d4
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 4 20:33:14 2009 +0100

    Bug 584218 â?? applet is crashing when setting my adapter up
    
    Fix accessing members of uuids when it's NULL. Fixes a crash on
    startup when a device doesn't have any UUIDs (which shouldn't
    really happen)
---
 applet/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/applet/main.c b/applet/main.c
index e552e23..826a74d 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -485,6 +485,9 @@ device_has_uuid (const char **uuids, const char *uuid)
 {
 	guint i;
 
+	if (uuids == NULL)
+		return FALSE;
+
 	for (i = 0; uuids[i] != NULL; i++) {
 		if (g_str_equal (uuid, uuids[i]) != FALSE)
 			return TRUE;



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