Coverity CWE 688: Function Call With Incorrect Variable or Reference as Argument