Fix typo evaluating end property with db suffix. (coverity-1134054)
Fix possible null pointer dereference. (coverity-1225796)
Fix wrong size args. (coverity-709408)
Remove unncessary pointer null checks. (coverity-709395)
Remove unnecessary self assignment. (coverity-709364)