Commit f72cb38d authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Martyn Russell

libtracker-miner: Initialize TrackerDirectoryFlags to NONE in any case

This is so calling tracker_indexing_tree_get_root() on an unindexed file
doesn't end up with uninitialized memory as flags.
parent f8912630
......@@ -780,6 +780,10 @@ tracker_indexing_tree_get_root (TrackerIndexingTree *tree,
NodeData *data;
GNode *parent;
if (directory_flags) {
g_return_val_if_fail (TRACKER_IS_INDEXING_TREE (tree), NULL);
g_return_val_if_fail (G_IS_FILE (file), NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment