cppcheck fixes
This branch has a number of fixes for issues found by cppcheck - among other things, the uninitialised variable that caused the segfault in 2af1d1b5.
This branch has a number of fixes for issues found by cppcheck - among other things, the uninitialised variable that caused the segfault in 2af1d1b5.