From 81a3279483eb4506501ddcc5ad176d1be108434c Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 8 Jan 2013 17:00:11 +0100 Subject: [PATCH] Check if any Spotlight module is actually loaded --- etc/afpd/spotlight.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/afpd/spotlight.c b/etc/afpd/spotlight.c index dc1682bb..5e95c11d 100644 --- a/etc/afpd/spotlight.c +++ b/etc/afpd/spotlight.c @@ -369,7 +369,8 @@ EC_CLEANUP: **/ void sl_index_file(const char *path) { - sl_module_export->sl_mod_index_file(path); + if (sl_module_export && sl_module_export->sl_mod_index_file) + sl_module_export->sl_mod_index_file(path); } /************************************************************************************************** -- 2.39.2