aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-18 17:10:01 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-18 17:10:01 +0000
commit422200b6f0f05e9767b9b40f78cd9700395ba703 (patch)
treed4509897774f6944740f85eb28b18a4dd9eb3b0b /main
parentda9bcb0f9e941ccf210e53304cbf64b2a7384b89 (diff)
Oops
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@131988 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/sched.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/sched.c b/main/sched.c
index 4e0a51bca..b08f64443 100644
--- a/main/sched.c
+++ b/main/sched.c
@@ -286,7 +286,11 @@ int _ast_sched_del(struct sched_context *con, int id, const char *file, int line
if (!s) {
if (option_debug)
ast_log(LOG_DEBUG, "Attempted to delete nonexistent schedule entry %d!\n", id);
+#ifndef DEVMODE
+ ast_assert(s != NULL);
+#else
_ast_assert(0, "s != NULL", file, line, function);
+#endif
return -1;
}