[tracker/tracker-0.14] 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/tracker-0.14] libtracker-miner: Don't crash in _file_system_get_file() if node non-NULL
- Date: Thu, 3 May 2012 18:18:51 +0000 (UTC)
commit 61f304067fb3d4b297f514c1183e9c58353e8538
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]