summaryrefslogtreecommitdiff
path: root/main/sched.c
diff options
context:
space:
mode:
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;
}