summaryrefslogtreecommitdiff
path: root/main/sched.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-07-18 17:10:34 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-07-18 17:10:34 +0000
commitc6081ee253fbb1e4fc6238694fc607c4004097c3 (patch)
treef7dd804033c2c5c15c32ed16a4a41dde7a3d7f11 /main/sched.c
parent7575be9da14d2153d212c59adae1eaf935108a6e (diff)
Merged revisions 131988 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r131988 | tilghman | 2008-07-18 12:10:01 -0500 (Fri, 18 Jul 2008) | 2 lines Oops ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@131989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/sched.c')
-rw-r--r--main/sched.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/sched.c b/main/sched.c
index 6a6830b83..f32cfab92 100644
--- a/main/sched.c
+++ b/main/sched.c
@@ -377,7 +377,11 @@ int _ast_sched_del(struct sched_context *con, int id, const char *file, int line
if (!s) {
ast_debug(1, "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;
}