[tracker] libtracker-miner: Initialize all NodeData memory
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Initialize all NodeData memory
- Date: Mon, 14 Mar 2016 22:29:00 +0000 (UTC)
commit 65f6d8523c4af2fa09a7aef6c8d8161fa76f4642
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Mar 14 23:03:40 2016 +0100
libtracker-miner: Initialize all NodeData memory
we were leaving fields uninitialized.
src/libtracker-miner/tracker-indexing-tree.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-indexing-tree.c b/src/libtracker-miner/tracker-indexing-tree.c
index d128fb3..5b6139d 100644
--- a/src/libtracker-miner/tracker-indexing-tree.c
+++ b/src/libtracker-miner/tracker-indexing-tree.c
@@ -90,10 +90,9 @@ node_data_new (GFile *file,
{
NodeData *data;
- data = g_slice_new (NodeData);
+ data = g_slice_new0 (NodeData);
data->file = g_object_ref (file);
data->flags = flags;
- data->shallow = FALSE;
return data;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]