He recognized a Christian duty to charity but was gripped by a fear that his charity would be wasted, thereby incriminating him in sin.
He was afraid that his duty to contribute charitably would be lessened if his gift was squandered.
He felt fine enough giving to charity and not thinking of it further.