From: Tilghman Lesher Date: Fri, 18 Jul 2008 17:10:01 +0000 (+0000) Subject: Oops X-Git-Tag: 1.4.22-rc1~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f738146e81053502e3309663e683bbb7ff3b006;p=thirdparty%2Fasterisk.git Oops git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@131988 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/sched.c b/main/sched.c index 4e0a51bca0..b08f64443d 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; }