cppcheck found two slight issues

Slight modifications:
 1) Fixed uninitialized variable when a certain constructor was used
 2) Moved an initialization to an initializer list