Fixed comparison of pointer/NULL with < 0.  gcc 4.7.2 found this.
Merge pull request #282 from thewacokid/master

Fixed comparison of pointer/NULL with < 0.  gcc 4.7.2 found this.