[tracker/tracker-1.10] libtracker-miner: Add missing return after switch() case
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.10] libtracker-miner: Add missing return after switch() case
- Date: Fri, 29 Sep 2017 20:03:23 +0000 (UTC)
commit 83baedb799b340894f5593123e0acf53585beb56
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Dec 14 19:54:50 2016 +0100
libtracker-miner: Add missing return after switch() case
The QUEUE_UPDATED elements where being additionally checked against
the QUEUE_WRITEBACK queue. This was harmless, but potentially confusing.
Spotted through Coverity.
src/libtracker-miner/tracker-miner-fs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 02b4a47..65d7650 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2885,6 +2885,7 @@ check_item_queues (TrackerMinerFS *fs,
g_debug (" Found previous unhandled CREATED/UPDATED event");
return FALSE;
}
+ return TRUE;
case QUEUE_WRITEBACK:
/* No consecutive writebacks for the same file */
if (tracker_priority_queue_find (fs->priv->items_writeback, NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]