diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-11 18:19:24 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-11 18:19:24 +0000 |
commit | ba5ec156c03aaaf9ea46195bdafead617267ec3f (patch) | |
tree | 078006f677b86a437a77ac44e295a2360bc65346 /main/sched.c | |
parent | 9edea8c7afaee5ae7cc759655e0cad78731e06ac (diff) |
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/trunk@121867 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 c40375d72..ee9d43125 100644 --- a/main/sched.c +++ b/main/sched.c @@ -373,7 +373,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; } |