[tracker] libtracker-miner: Don't crash in _file_system_get_file() if node non-NULL
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Don't crash in _file_system_get_file() if node non-NULL
- Date: Tue, 3 Apr 2012 12:59:47 +0000 (UTC)
commit b490dc8681d6e27713a234b7b6c1a4774503dce1
Author: Martyn Russell <martyn lanedo com>
Date: Tue Apr 3 13:56:19 2012 +0100
libtracker-miner: Don't crash in _file_system_get_file() if node non-NULL
This occurred where parent_node was unset because of strange URI themes, e.g.
sftp://.
Fixes GB#672308.
src/libtracker-miner/tracker-file-system.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-system.c b/src/libtracker-miner/tracker-file-system.c
index 98517d2..609734e 100644
--- a/src/libtracker-miner/tracker-file-system.c
+++ b/src/libtracker-miner/tracker-file-system.c
@@ -469,6 +469,7 @@ tracker_file_system_get_file (TrackerFileSystem *file_system,
priv = file_system->priv;
node = NULL;
+ parent_node = NULL;
if (parent) {
parent_node = file_system_get_node (file_system, parent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]