Index: trunk/docs/Changelog
===================================================================
--- trunk/docs/Changelog	(revision 387)
+++ trunk/docs/Changelog	(revision 388)
@@ -1,3 +1,6 @@
-3.0.2:  * fixed: the config file template mentions (in a comment) the
+3.0.2:
+	* fixed a potential NULL pointer dereference in sh_inotify.c on
+	  systems where inotify is not available (reported by <anonymous>)
+	* fixed: the config file template mentions (in a comment) the
 	  non-existent directive SetLockPath instead of the correct
 	  SetLockfilePath (reported by Curtis).
Index: trunk/src/sh_inotify.c
===================================================================
--- trunk/src/sh_inotify.c	(revision 387)
+++ trunk/src/sh_inotify.c	(revision 388)
@@ -862,5 +862,6 @@
   retry_msleep(waitsec, 0);
 
-  *errnum = 0;
+  if (errnum)
+    *errnum = 0;
   return -1;
 }
@@ -875,5 +876,7 @@
   (void) type;
   (void) rdepth;
-  *errnum = 0;
+
+  if (errnum)
+    *errnum = 0;
   return 0;
 }
@@ -889,5 +892,7 @@
   (void) type;
   (void) rdepth;
-  *errnum = 0;
+
+  if (errnum)
+    *errnum = 0;
   return 0;
 }
