FIX: Coverity Alerts

There was nothing particularly harmful. One thing was a mixed-up parameter order in `memset()` but this should also not be too severe.