]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sched.c: Make not return a sched id of 0. 37/1737/2
authorRichard Mudgett <rmudgett@digium.com>
Mon, 30 Nov 2015 22:42:47 +0000 (16:42 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 1 Dec 2015 19:46:21 +0000 (13:46 -0600)
commitbd4aee4b7bd10f793ae0bbd7db8fcdb9eff9c65c
tree6aeb9cddc4863479dc3cca36d510b0aec6ccac19
parent394b8a40c1508ef5617dfa231886aacc163dad0e
sched.c: Make not return a sched id of 0.

According to the API doxygen a sched ID of 0 is valid.  Unfortunately, 0
was never returned historically and several users incorrectly coded usage
of the returned sched ID assuming that 0 was invalid.

ASTERISK-25476

Change-Id: Ib19c7ebb44ec9fd393ef6646dea806d4f34e3a20
main/sched.c