]> arthur.barton.de Git - netatalk.git/commitdiff
Check if any Spotlight module is actually loaded
authorRalph Boehme <sloowfranklin@gmail.com>
Tue, 8 Jan 2013 16:00:11 +0000 (17:00 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Tue, 8 Jan 2013 16:00:11 +0000 (17:00 +0100)
etc/afpd/spotlight.c

index dc1682bba52465a50ac3c47a968e6d0bf682814c..5e95c11d54288fa23259075024484c19c752fd4e 100644 (file)
@@ -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);
 }
 
 /**************************************************************************************************