]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/spotlight.c
Move and rename Spotlight module
[netatalk.git] / etc / afpd / spotlight.c
index dc1682bba52465a50ac3c47a968e6d0bf682814c..eb4a125bf76b629db220df69fc84936399683c09 100644 (file)
@@ -36,8 +36,7 @@
 #include <atalk/byteorder.h>
 #include <atalk/netatalk_conf.h>
 #include <atalk/volume.h>
-
-#include "spotlight.h"
+#include <atalk/spotlight.h>
 
 static TALLOC_CTX *sl_ctx;
 static void *sl_module;
@@ -369,7 +368,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);
 }
 
 /**************************************************************************************************