summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Builtins/sched.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5dadf9aa1..95cc20942 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-12  Peter Stephenson  <pws@csr.com>
+
+	* 23552: Src/Builtins/sched.c: remove unnecessary debugging
+	warning.
+
 2007-06-11  Peter Stephenson  <pws@csr.com>
 
 	* 23543: Completion/Unix/Command/_perforce: work around
diff --git a/Src/Builtins/sched.c b/Src/Builtins/sched.c
index b6b00dff3..8a26b47f3 100644
--- a/Src/Builtins/sched.c
+++ b/Src/Builtins/sched.c
@@ -78,8 +78,11 @@ schedaddtimed(time_t t)
 static void
 scheddeltimed(void)
 {
-    deltimedfn(checksched);
-    schedcmdtimed = 0;
+    if (schedcmdtimed)
+    {
+	deltimedfn(checksched);
+	schedcmdtimed = 0;
+    }
 }