Fix sieve QP regression from Coverity cleanups