fixed trivial problem identified by clang analysis
Merge pull request #957 from civanch/gflash_clang

Simulations fixes -- Fixed trivial problem identified by clang analysis