[gnome-bluetooth] wizard: Fix crash when doing substring-matching
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] wizard: Fix crash when doing substring-matching
- Date: Mon, 29 Oct 2012 17:24:07 +0000 (UTC)
commit f1ede20e18c9b731d21e7ea8869c9a80933c11b2
Author: Bastien Nocera <hadess hadess net>
Date: Mon Oct 29 18:20:02 2012 +0100
wizard: Fix crash when doing substring-matching
Regression caused by aabaada7ac0d24cf67590f7403156c68bc8f98d4
https://bugzilla.redhat.com/show_bug.cgi?id=869083
wizard/pin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/wizard/pin.c b/wizard/pin.c
index b91b1fd..e7043bc 100644
--- a/wizard/pin.c
+++ b/wizard/pin.c
@@ -90,7 +90,7 @@ pin_db_parse_start_tag (GMarkupParseContext *ctx,
if (g_str_has_prefix (pdata->address, *attr_values) == FALSE)
return;
} else if (g_str_equal (*attr_names, "name")) {
- if (*attr_values == NULL)
+ if (*attr_values == NULL || pdata->name == NULL)
return;
if (strstr (*attr_values, pdata->name) == NULL)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]