fixing one coverity issue
Merge branch 'master' of https://github.com/regehr/solid_code_class
Merge branch 'master' of https://github.com/regehr/solid_code_class
fixing another segfault. program runs from beginning to end without crashing.