[tracker] libtracker-miner: Don't crash in _file_system_get_file() if node non-NULL



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]