]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sched.c: Make not return a sched id of 0. 43/1743/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:53:18 +0000 (13:53 -0600)
commite7c88e11aa753e046fe58a19ac82320c81cc6e2b
tree5474b8fdede9e363afc5ab8c05aad3e3c88f1126
parent4aed349a7bd2e62d82c5e9535f7cf69263eeb60a
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