[tracker] libtracker-extract: fix dummy_module
- From: Dominique Leuenberger <dleuen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-extract: fix dummy_module
- Date: Thu, 3 Sep 2015 08:30:48 +0000 (UTC)
commit 60f6d1f6be5fb01c88babe246e06f620796ce319
Author: Dominique Leuenberger <dimstar opensuse org>
Date: Wed Sep 2 13:39:54 2015 +0200
libtracker-extract: fix dummy_module
The ModuleInfo typedef contains 6 items, of which the last is 'optional' (predefined).
TRUE as parameter for TrackerExtractShutdownFunc though is not a good idea: it's used as an
integer and passed as a pointer to a function call.
As there is no shudown function for the dummy module, just pass an additional NULL in there.
https://bugzilla.gnome.org/show_bug.cgi?id=754448
src/libtracker-extract/tracker-module-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-module-manager.c b/src/libtracker-extract/tracker-module-manager.c
index dc03200..175c83e 100644
--- a/src/libtracker-extract/tracker-module-manager.c
+++ b/src/libtracker-extract/tracker-module-manager.c
@@ -46,7 +46,7 @@ static gboolean dummy_extract_func (TrackerExtractInfo *info);
static ModuleInfo dummy_module = {
NULL, TRACKER_MODULE_MAIN_THREAD,
- dummy_extract_func, NULL, TRUE
+ dummy_extract_func, NULL, NULL, TRUE
};
static GHashTable *modules = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]