summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-06-12 15:37:18 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-06-12 15:37:18 +0000
commit1a959dae01bca3b6e607dc15dda7e9f0c40078c0 (patch)
treea6b85a8ac0a894c59d2fbc5e1583001a7b575f27
parent1bb5b24d4e5627e147616dbfc49a96262e11d094 (diff)
downloadzsh-1a959dae01bca3b6e607dc15dda7e9f0c40078c0.tar.gz
zsh-1a959dae01bca3b6e607dc15dda7e9f0c40078c0.tar.xz
zsh-1a959dae01bca3b6e607dc15dda7e9f0c40078c0.zip
23552: unnecessary sched debugging warning
-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;
+    }
 }