chiark / gitweb /
server/schedule.c: Maintain separate variables for raw and resolved tracks. 5.2.x
authorMark Wooding <mdw@distorted.org.uk>
Tue, 5 May 2020 19:06:05 +0000 (20:06 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 5 May 2020 22:17:44 +0000 (23:17 +0100)
commit5227899647fb6d1f5fe2951e5db1a2bc86933a9f
tree75bc0ef379bbc389898e7aaf273a31eed04d4826
parent6e19032aa4c34a5c6c900e558d8bfa88f8382bc0
server/schedule.c: Maintain separate variables for raw and resolved tracks.

GCC 9 correctly points out that, if `trackdb_resolve' fails, we try to
print a null pointer in the error message, rather than the offending
track name.

Fix this by not reusing the same variable for two different jobs with
overlapping lifetimes.
server/schedule.c