cppcheck: minor pointer dereference fixes