-
Daniel Kutik authored
Moved the two functions to util.c to remove duplicate code. The previous error handling in some of the implemenations was incomplete as it caused qdl to crash. While the variable errors was incremented we still tried to return the regular result. Now returning 0/NULL in case of error. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
dc61f8f7