]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Oops
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 18 Jul 2008 17:10:01 +0000 (17:10 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 18 Jul 2008 17:10:01 +0000 (17:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@131988 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/sched.c

index 4e0a51bca0351fe2c05d0bbd9b98e615b8180b9f..b08f64443d56cb9c21af84262f459bf6ed2a2214 100644 (file)
@@ -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;
        }