[tracker] libtracker-common: Fix c&p issue
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-common: Fix c&p issue
- Date: Wed, 14 Dec 2016 19:43:47 +0000 (UTC)
commit 26257eb1b2d91713c1782490ac992a31e0c1835d
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Dec 14 19:47:58 2016 +0100
libtracker-common: Fix c&p issue
We must remove and iterate to the next element on l2, the l1 path
is performed in the if(){} path. Spotted through Coverity.
src/libtracker-common/tracker-file-utils.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-common/tracker-file-utils.c b/src/libtracker-common/tracker-file-utils.c
index 7f7f1df..4de4181 100644
--- a/src/libtracker-common/tracker-file-utils.c
+++ b/src/libtracker-common/tracker-file-utils.c
@@ -459,14 +459,13 @@ tracker_path_list_filter_duplicates (GSList *roots,
reset = TRUE;
continue;
- }
- else if (is_recursive && tracker_path_is_in_path (in_path, path)) {
+ } else if (is_recursive && tracker_path_is_in_path (in_path, path)) {
g_debug ("Removing path:'%s', it is in path:'%s'",
in_path, path);
g_free (l2->data);
new_list = g_slist_delete_link (new_list, l2);
- l1 = new_list;
+ l2 = new_list;
reset = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]