diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-11 18:20:18 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-11 18:20:18 +0000 |
commit | a1e5e9b6643a99df9ebf2c17b6c9d00d506e53c8 (patch) | |
tree | 0c5e9551ee6aff27e52afd2cfad55ae4550d59e4 /main/sched.c | |
parent | 7143b0381c4e95b6081e0e89ae52bdda859f00f1 (diff) |
Merged revisions 121867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r121867 | tilghman | 2008-06-11 13:19:24 -0500 (Wed, 11 Jun 2008) | 11 lines
Merged revisions 121861 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r121861 | tilghman | 2008-06-11 13:18:16 -0500 (Wed, 11 Jun 2008) | 3 lines
Make calls to ast_assert() actually test something, so that the error message
printed is not nonsensical (reported by mvanbaak via #asterisk-bugs).
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@121872 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/sched.c')
-rw-r--r-- | main/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/sched.c b/main/sched.c index e5b46a85c..fdb0c7e8c 100644 --- a/main/sched.c +++ b/main/sched.c @@ -289,7 +289,7 @@ int ast_sched_del(struct sched_context *con, int id) if (!s) { ast_debug(1, "Attempted to delete nonexistent schedule entry %d!\n", id); - ast_assert(0); + ast_assert(s != NULL); return -1; } |