=?utf-8?b?W3RyYWNrZXJdIEJ1ZyA2NjY2Nzgg4oCUIGdfc3RyX2hhc19wcmVmaXgoKSBj?= =?utf-8?q?alled_on_a_NULL_string=E2=80=A6?=
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Bug 666678 â g_str_has_prefix() called on a NULL stringâ
- Date: Wed, 21 Dec 2011 18:39:57 +0000 (UTC)
commit 507d98d19b86c9e59eab7e7267e8ece23e995dbd
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Dec 21 18:02:37 2011 +0000
Bug 666678 â g_str_has_prefix() called on a NULL stringâ
Fix g_str_has_prefix() being called on a NULL string with the
tracker_config_file_new() constructor.
Closes: bgo#666678
src/libtracker-common/tracker-config-file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-config-file.c b/src/libtracker-common/tracker-config-file.c
index d45bfe6..0bbe850 100644
--- a/src/libtracker-common/tracker-config-file.c
+++ b/src/libtracker-common/tracker-config-file.c
@@ -153,7 +153,7 @@ config_set_property (GObject *object,
domain = g_value_get_string (value);
/* Get rid of the "lt-" prefix if any */
- if (g_str_has_prefix (domain, "lt-")) {
+ if (domain != NULL && g_str_has_prefix (domain, "lt-")) {
domain += 3;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]