[tracker] libtracker-extract: Remove unneeded NULL check
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-extract: Remove unneeded NULL check
- Date: Wed, 14 Dec 2016 19:44:17 +0000 (UTC)
commit a2ce66a55e10820bbb842fffc7e7e03e01da6a81
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Dec 14 19:54:07 2016 +0100
libtracker-extract: Remove unneeded NULL check
The module_info variable is ensured to be non-NULL at this point.
src/libtracker-extract/tracker-module-manager.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-module-manager.c b/src/libtracker-extract/tracker-module-manager.c
index 15f2964..2d599e4 100644
--- a/src/libtracker-extract/tracker-module-manager.c
+++ b/src/libtracker-extract/tracker-module-manager.c
@@ -368,8 +368,7 @@ load_module (RuleInfo *info,
g_hash_table_insert (modules, (gpointer) info->module_path, module_info);
}
- if (module_info && initialize &&
- !module_info->initialized) {
+ if (initialize && !module_info->initialized) {
if (module_info->init_func) {
GError *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]