Static Analysis

Trying to figure out pull requests on Github, and thought I'd do a modicum of good at the same time.  Grabbed udunits, ran clang/llvm-based static analysis on it and fixed a couple of minor issues reported.  Plus an issue I introduced when fixing one of the issues. That's what unit tests are for, right?