Merged revisions 131988 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 18 Jul 2008 17:10:34 +0000 (17:10 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 18 Jul 2008 17:10:34 +0000 (17:10 +0000)
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

main/sched.c

index 6a6830b..f32cfab 100644 (file)
@@ -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;
        }